corepkgs/fetchurl.sh: Use config.nix's curl
This commit is contained in:
parent
9d94a28bed
commit
a994eb92a4
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue