summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-17 10:42:51 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-09-17 10:42:51 +0200
commitc9f51e87057652db0013289a95deffba495b35e7 (patch)
treecfa5f88a6d8da6bf602ff9390a1546a37b8280a6 /tests
parent787469c7b66aec12ab6847e7db2cdc8aef5c325e (diff)
Remove corepkgs/config.nix
This isn't used anywhere except in the configure script of the Perl bindings. I've changed the latter to use the C++ API's Settings object at runtime.
Diffstat (limited to 'tests')
-rw-r--r--tests/recursive.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/recursive.sh b/tests/recursive.sh
index cf10d55bf..80a178cc7 100644
--- a/tests/recursive.sh
+++ b/tests/recursive.sh
@@ -9,9 +9,8 @@ rm -f $TEST_ROOT/result
export unreachable=$(nix add-to-store ./recursive.sh)
-nix --experimental-features 'nix-command recursive-nix' build -o $TEST_ROOT/result -L --impure --expr '
+NIX_BIN_DIR=$(dirname $(type -p nix)) nix --experimental-features 'nix-command recursive-nix' build -o $TEST_ROOT/result -L --impure --expr '
with import ./config.nix;
- with import <nix/config.nix>;
mkDerivation {
name = "recursive";
dummy = builtins.toFile "dummy" "bla bla";
@@ -24,9 +23,10 @@ nix --experimental-features 'nix-command recursive-nix' build -o $TEST_ROOT/resu
buildCommand = '\'\''
mkdir $out
- PATH=${nixBinDir}:$PATH
opts="--experimental-features nix-command"
+ PATH=${builtins.getEnv "NIX_BIN_DIR"}:$PATH
+
# Check that we can query/build paths in our input closure.
nix $opts path-info $dummy
nix $opts build $dummy