mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
corepkgs/fetchurl: Call the shell directly instead of using the shebang
This commit is contained in:
parent
a994eb92a4
commit
f863673a90
2 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,8 @@ assert (outputHash != "" && outputHashAlgo != "")
|
|||
|
||||
derivation {
|
||||
name = baseNameOf (toString url);
|
||||
builder = ./fetchurl.sh;
|
||||
builder = shell;
|
||||
args = [ "-e" ./fetchurl.sh ];
|
||||
|
||||
# Compatibility with Nix <= 0.7.
|
||||
id = md5;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#! @shell@ -e
|
||||
|
||||
echo "downloading $url into $out"
|
||||
|
||||
$curl --fail --location --max-redirs 20 "$url" > "$out"
|
||||
|
|
Loading…
Reference in a new issue