diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-02-06 15:00:33 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-02-06 15:00:33 +0100 |
commit | f337ab4430e972c183ef9aa6c54275bf8c996ab2 (patch) | |
tree | ec6d544358b78d9877bf23f520025856cb9c3fcb /pkgs/build-support/fetchurl/builder.sh | |
parent | 6b702f23eaf6c99d4d8a3aaee88804fa14d68bfc (diff) | |
download | nixpkgs-f337ab4430e972c183ef9aa6c54275bf8c996ab2.tar nixpkgs-f337ab4430e972c183ef9aa6c54275bf8c996ab2.tar.gz nixpkgs-f337ab4430e972c183ef9aa6c54275bf8c996ab2.tar.bz2 nixpkgs-f337ab4430e972c183ef9aa6c54275bf8c996ab2.tar.lz nixpkgs-f337ab4430e972c183ef9aa6c54275bf8c996ab2.tar.xz nixpkgs-f337ab4430e972c183ef9aa6c54275bf8c996ab2.tar.zst nixpkgs-f337ab4430e972c183ef9aa6c54275bf8c996ab2.zip |
fetchurl: Remove some compatibility hacks
Diffstat (limited to 'pkgs/build-support/fetchurl/builder.sh')
-rw-r--r-- | pkgs/build-support/fetchurl/builder.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/pkgs/build-support/fetchurl/builder.sh b/pkgs/build-support/fetchurl/builder.sh index 808bf9f7cde..4af060cadc6 100644 --- a/pkgs/build-support/fetchurl/builder.sh +++ b/pkgs/build-support/fetchurl/builder.sh @@ -29,20 +29,6 @@ tryDownload() { finish() { - # On old versions of Nix, verify the hash of the output. On newer - # versions, Nix verifies the hash itself. - if test "$NIX_OUTPUT_CHECKED" != "1"; then - if test "$outputHashAlgo" != "md5"; then - echo "hashes other than md5 are unsupported in Nix <= 0.7, upgrade to Nix 0.8" - exit 1 - fi - actual=$(md5sum -b "$out" | cut -c1-32) - if test "$actual" != "$id"; then - echo "hash is $actual, expected $id" - exit 1 - fi - fi - stopNest exit 0 } |