Import source to librtti
Summary: - Import initial source Test Plan: NA
This commit is contained in:
commit
c8c1749347
23 changed files with 969 additions and 0 deletions
42
flake.nix
Normal file
42
flake.nix
Normal 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;
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue