From a90d8de242c5124a82302df7628ec9c4fb55bb75 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sat, 14 Mar 2020 20:07:02 +0100 Subject: lib/tests/release.nix: Avoid importing nixpkgs into the store Improves build time by about a factor of two on my system --- lib/tests/release.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/tests') 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 '' -- cgit v1.2.3