lib/tests/release.nix: Avoid importing nixpkgs into the store
Improves build time by about a factor of two on my system
This commit is contained in:
parent
0bc7f3440a
commit
a90d8de242
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs ? import ((import ../.).cleanSource ../..) {} }:
|
{ pkgs ? import ../.. {} }:
|
||||||
|
|
||||||
pkgs.runCommandNoCC "nixpkgs-lib-tests" {
|
pkgs.runCommandNoCC "nixpkgs-lib-tests" {
|
||||||
buildInputs = [ pkgs.nix (import ./check-eval.nix) ];
|
buildInputs = [ pkgs.nix (import ./check-eval.nix) ];
|
||||||
|
@ -17,8 +17,8 @@ pkgs.runCommandNoCC "nixpkgs-lib-tests" {
|
||||||
cacheDir=$TEST_ROOT/binary-cache
|
cacheDir=$TEST_ROOT/binary-cache
|
||||||
nix-store --init
|
nix-store --init
|
||||||
|
|
||||||
cd ${pkgs.path}/lib/tests
|
cp -r ${../.} lib
|
||||||
bash ./modules.sh
|
bash lib/tests/modules.sh
|
||||||
|
|
||||||
touch $out
|
touch $out
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue