diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-07-17 13:07:08 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-07-17 13:07:08 +0200 |
commit | 49304bae812f2c5334f304a4ea6a4e06360b33da (patch) | |
tree | e68576b261321adc34b146f8ea72016793d856a7 /tests/fetchurl.sh | |
parent | 4ec6eb1fdf513d93090d5898762d1186eb6feb0d (diff) |
Make the hashes mirrors used by builtins.fetchurl configurable
In particular, this allows it to be disabled in our tests.
Diffstat (limited to 'tests/fetchurl.sh')
-rw-r--r-- | tests/fetchurl.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fetchurl.sh b/tests/fetchurl.sh index 808f46025..02b83525b 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 |