aboutsummaryrefslogtreecommitdiff
path: root/tests/gc-auto.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-11-27 00:05:30 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-11-27 00:05:30 +0100
commitca8caaec5e7581c37b46f79622c81adf52f06314 (patch)
tree0e0693236f221f1d9ac0fba265a01c196396cb6a /tests/gc-auto.sh
parent2c6dbcd5e7a16227e0aef008c62c81220f4b3ffc (diff)
nix: Add --expr flag
This replaces the '(...)' installable syntax, which is not very discoverable. The downside is that you can't have multiple expressions or mix expressions and other installables.
Diffstat (limited to 'tests/gc-auto.sh')
-rw-r--r--tests/gc-auto.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gc-auto.sh b/tests/gc-auto.sh
index a74c675b0..e593697a9 100644
--- a/tests/gc-auto.sh
+++ b/tests/gc-auto.sh
@@ -57,11 +57,11 @@ with import ./config.nix; mkDerivation {
EOF
)
-nix build --impure -v -o $TEST_ROOT/result-A -L "($expr)" \
+nix build --impure -v -o $TEST_ROOT/result-A -L --expr "$expr" \
--min-free 1000 --max-free 2000 --min-free-check-interval 1 &
pid=$!
-nix build --impure -v -o $TEST_ROOT/result-B -L "($expr2)" \
+nix build --impure -v -o $TEST_ROOT/result-B -L --expr "$expr2" \
--min-free 1000 --max-free 2000 --min-free-check-interval 1
wait "$pid"