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:
Silvan Mosberger 2020-03-14 20:07:02 +01:00
parent 0bc7f3440a
commit a90d8de242
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D

View File

@ -1,4 +1,4 @@
{ pkgs ? import ((import ../.).cleanSource ../..) {} }:
{ pkgs ? import ../.. {} }:
pkgs.runCommandNoCC "nixpkgs-lib-tests" {
buildInputs = [ pkgs.nix (import ./check-eval.nix) ];
@ -17,8 +17,8 @@ pkgs.runCommandNoCC "nixpkgs-lib-tests" {
cacheDir=$TEST_ROOT/binary-cache
nix-store --init
cd ${pkgs.path}/lib/tests
bash ./modules.sh
cp -r ${../.} lib
bash lib/tests/modules.sh
touch $out
''