* Purify all corepkgs builders.

This commit is contained in:
Eelco Dolstra 2005-03-15 12:03:15 +00:00
parent e52ae1c0ff
commit bacd3a6cfa
5 changed files with 17 additions and 15 deletions

View file

@ -1,13 +1,11 @@
#! @shell@ -e
export PATH=/bin:/usr/bin
echo "downloading $url into $out"
prefetch=@storedir@/nix-prefetch-url-$outputHash
if test -f "$prefetch"; then
echo "using prefetched $prefetch";
mv $prefetch $out
@coreutils@/mv $prefetch $out
else
@curl@ --fail --location --max-redirs 20 "$url" > "$out"
fi