diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-03-14 20:07:02 +0100 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-04-13 17:27:05 +0200 |
commit | a90d8de242c5124a82302df7628ec9c4fb55bb75 (patch) | |
tree | 91b775b3dc8b02bf9e54c52cb1620c9ed3215ab4 /lib | |
parent | 0bc7f3440a35c318a2309f10627daa4f41029ebf (diff) |
lib/tests/release.nix: Avoid importing nixpkgs into the store
Improves build time by about a factor of two on my system
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tests/release.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tests/release.nix b/lib/tests/release.nix index 069c015d783a..6b3a1e794b72 100644 --- a/lib/tests/release.nix +++ b/lib/tests/release.nix @@ -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 '' |