get rid of all rec
s
This commit is contained in:
parent
66b86d7c25
commit
b6416ff49a
1 changed files with 7 additions and 4 deletions
11
flake.nix
11
flake.nix
|
@ -9,12 +9,14 @@
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||||
pkgsForEach = nixpkgs.legacyPackages;
|
pkgsForEach = nixpkgs.legacyPackages;
|
||||||
in rec {
|
enginesForEach = import ./engine.nix;
|
||||||
|
in {
|
||||||
functions = forEachSystem (
|
functions = forEachSystem (
|
||||||
system: let
|
system: let
|
||||||
pkgs = pkgsForEach.${system};
|
pkgs = pkgsForEach.${system};
|
||||||
in rec {
|
engine = enginesForEach pkgs;
|
||||||
engine = import ./engine.nix pkgs;
|
in {
|
||||||
|
inherit engine;
|
||||||
mkNteDerivation = import ./nte-drv.nix pkgs engine;
|
mkNteDerivation = import ./nte-drv.nix pkgs engine;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -30,10 +32,11 @@
|
||||||
examples = forEachSystem (
|
examples = forEachSystem (
|
||||||
system: let
|
system: let
|
||||||
pkgs = pkgsForEach.${system};
|
pkgs = pkgsForEach.${system};
|
||||||
|
engine = enginesForEach pkgs;
|
||||||
in {
|
in {
|
||||||
default = import ./example/default.nix {
|
default = import ./example/default.nix {
|
||||||
inherit (pkgs) lib stdenv;
|
inherit (pkgs) lib stdenv;
|
||||||
nte = functions.${system}.engine ./example;
|
nte = engine ./example;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue