summary refs log tree commit diff
path: root/pkgs/stdenv/nix-linux-static/scripts/download-script
blob: a3cf210df15a4d17989c0e8d3e4d3967d6199b30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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