corepkgs/fetchurl: Call the shell directly instead of using the shebang
This commit is contained in:
parent
a994eb92a4
commit
f863673a90
|
@ -10,7 +10,8 @@ assert (outputHash != "" && outputHashAlgo != "")
|
||||||
|
|
||||||
derivation {
|
derivation {
|
||||||
name = baseNameOf (toString url);
|
name = baseNameOf (toString url);
|
||||||
builder = ./fetchurl.sh;
|
builder = shell;
|
||||||
|
args = [ "-e" ./fetchurl.sh ];
|
||||||
|
|
||||||
# Compatibility with Nix <= 0.7.
|
# Compatibility with Nix <= 0.7.
|
||||||
id = md5;
|
id = md5;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! @shell@ -e
|
|
||||||
|
|
||||||
echo "downloading $url into $out"
|
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