mirror of
https://github.com/NixOS/nix
synced 2025-07-13 17:10:47 +02:00
* Scan for wget and use the full path in fetchurl.sh.
* Use nix-hash (not md5sum) in fetchurl.sh.
This commit is contained in:
parent
236eb59293
commit
d551062ec4
3 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,9 @@
|
|||
#! /bin/sh
|
||||
|
||||
echo "downloading $url into $out..."
|
||||
wget "$url" -O "$out" || exit 1
|
||||
@wget@ "$url" -O "$out" || exit 1
|
||||
|
||||
actual=$(md5sum -b $out | cut -c1-32)
|
||||
actual=$(@bindir@/nix-hash --flat $out)
|
||||
if ! test "$actual" == "$md5"; then
|
||||
echo "hash is $actual, expected $md5"
|
||||
exit 1
|
Loading…
Add table
Add a link
Reference in a new issue