nixpkgs/pkgs/stdenv/linux/scripts/download-script

19 lines
286 B
Plaintext
Raw Normal View History

set -e
echo "using curl executable $curl"
$curl/bin/curl "$url" > .tmp
$bunzip2 -d < .tmp | $tar xvf -
$cp -prd * $out
if test -n "$postProcess"; then
for i in $addToPath; do
export PATH=$PATH:$i/bin
done
for i in $postProcess; do
source $i
done
fi