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

19 lines
285 B
Plaintext
Raw Normal View History

set -e
echo "using curl executable $curl"
$curl/bin/curl "$url" > .tmp
$gunzip -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