Import source to librtti

Summary:

- Import initial source

Test Plan:
NA
This commit is contained in:
Rongsong Shen 2026-01-29 17:22:53 +08:00
commit c8c1749347
23 changed files with 969 additions and 0 deletions

42
flake.nix Normal file
View file

@ -0,0 +1,42 @@
{
description = "Flake for librtti";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
xbuild.url = "github:shen390s/my-nix-channel?ref=master";
};
outputs =
{
self,
nixpkgs,
flake-utils,
xbuild,
}:
let
supportedSystems = [ "x86_64-linux" ];
in
flake-utils.lib.eachSystem supportedSystems (
system:
let
mypkgs = xbuild.packages.${system};
overlays = [
(final: prev: mypkgs // prev)
];
pkgs = import nixpkgs { inherit overlays system; };
xpkgs = import ./nixSupport/default.nix {
inherit pkgs;
};
in
rec {
packages = pkgs // xpkgs;
defaultPackage = xpkgs.librtti_debug;
devShells.default = pkgs.mkShell {
nativeBuildInputs = xpkgs.librtti.nativeBuildInputs;
};
devShell = self.devShells.${system}.default;
}
);
}