about summary refs log tree commit diff
path: root/tests/fetchurl.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-07-17T11·07+0200
committerEelco Dolstra <edolstra@gmail.com>2017-07-17T11·07+0200
commit49304bae812f2c5334f304a4ea6a4e06360b33da (patch)
treee68576b261321adc34b146f8ea72016793d856a7 /tests/fetchurl.sh
parent4ec6eb1fdf513d93090d5898762d1186eb6feb0d (diff)
Make the hashes mirrors used by builtins.fetchurl configurable
In particular, this allows it to be disabled in our tests.
Diffstat (limited to '')
-rw-r--r--tests/fetchurl.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fetchurl.sh b/tests/fetchurl.sh
index 808f460258..02b83525bb 100644
--- a/tests/fetchurl.sh
+++ b/tests/fetchurl.sh
@@ -5,7 +5,7 @@ clearStore
 # Test fetching a flat file.
 hash=$(nix-hash --flat --type sha256 ./fetchurl.sh)
 
-outPath=$(nix-build '<nix/fetchurl.nix>' --argstr url file://$(pwd)/fetchurl.sh --argstr sha256 $hash --no-out-link)
+outPath=$(nix-build '<nix/fetchurl.nix>' --argstr url file://$(pwd)/fetchurl.sh --argstr sha256 $hash --no-out-link --option hashed-mirrors '')
 
 cmp $outPath fetchurl.sh
 
@@ -14,7 +14,7 @@ clearStore
 
 hash=$(nix hash-file --type sha512 --base64 ./fetchurl.sh)
 
-outPath=$(nix-build '<nix/fetchurl.nix>' --argstr url file://$(pwd)/fetchurl.sh --argstr sha512 $hash --no-out-link)
+outPath=$(nix-build '<nix/fetchurl.nix>' --argstr url file://$(pwd)/fetchurl.sh --argstr sha512 $hash --no-out-link --option hashed-mirrors '')
 
 cmp $outPath fetchurl.sh