corepkgs/fetchurl.sh: Use config.nix's curl

This commit is contained in:
Shea Levy 2012-07-08 10:32:12 -04:00 committed by Eelco Dolstra
parent 9d94a28bed
commit a994eb92a4
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,5 @@
with import <nix/config.nix>;
# Argh, this thing is duplicated (more-or-less) in Nixpkgs. Need to
# find a way to combine them.
@ -19,5 +21,5 @@ derivation {
outputHash = if outputHash != "" then outputHash else
if sha256 != "" then sha256 else if sha1 != "" then sha1 else md5;
inherit system url;
inherit system url curl;
}

View file

@ -2,4 +2,4 @@
echo "downloading $url into $out"
@curl@ --fail --location --max-redirs 20 "$url" > "$out"
$curl --fail --location --max-redirs 20 "$url" > "$out"