inventory: make resolve module a clanLib function
Unclutter inventory logic
This commit is contained in:
@@ -32,9 +32,6 @@ in
|
||||
inherit lib;
|
||||
clanLib = self.clanLib;
|
||||
};
|
||||
legacyPackages.eval-tests-resolve-module = import ./test-resolve-module.nix {
|
||||
inherit lib;
|
||||
};
|
||||
|
||||
checks = {
|
||||
eval-lib-distributedServices = pkgs.runCommand "tests" { nativeBuildInputs = [ pkgs.nix-unit ]; } ''
|
||||
@@ -47,16 +44,6 @@ in
|
||||
|
||||
touch $out
|
||||
'';
|
||||
eval-tests-resolve-module = pkgs.runCommand "tests" { nativeBuildInputs = [ pkgs.nix-unit ]; } ''
|
||||
export HOME="$(realpath .)"
|
||||
nix-unit --eval-store "$HOME" \
|
||||
--extra-experimental-features flakes \
|
||||
--show-trace \
|
||||
${inputOverrides} \
|
||||
--flake ${inventoryTestsSrc}#legacyPackages.${system}.eval-tests-resolve-module
|
||||
|
||||
touch $out
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user