mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-03 10:56:17 +02:00
11 lines
270 B
Bash
11 lines
270 B
Bash
#! @shell@ -e
|
|
|
|
echo "downloading $url into $out"
|
|
|
|
prefetch=@storedir@/nix-prefetch-url-$outputHash
|
|
if test -f "$prefetch"; then
|
|
echo "using prefetched $prefetch";
|
|
@coreutils@/mv $prefetch $out
|
|
else
|
|
@curl@ --fail --location --max-redirs 20 "$url" > "$out"
|
|
fi
|