get rid of all recs

This commit is contained in:
jacekpoz 2024-09-12 21:48:26 +02:00
parent 66b86d7c25
commit b6416ff49a
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

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