librtti/flake.nix
Rongsong Shen c8c1749347 Import source to librtti
Summary:

- Import initial source

Test Plan:
NA
2026-01-29 17:23:07 +08:00

42 lines
1,003 B
Nix

{
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;
}
);
}