about summary refs log blame commit diff
path: root/dev-shell
blob: 5a090ded6080d75416b4ed12aac755107a5ba042 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                   




                               

                                          

                                 


                                          
                                                                                                                                                                                                               



                                                                                  
#!/usr/bin/env bash
if [ -e tests/test-tmp ]; then
    chmod -R u+w tests/test-tmp
    rm -rf tests/test-tmp
fi

s=$(type -p nix-shell)
exec $s release.nix -A tarball --command "
    unset http_proxy
    export NIX_REMOTE=$NIX_REMOTE
    export NIX_PATH='$NIX_PATH'
    export NIX_BUILD_SHELL=$(type -p bash)
    export c=\$configureFlags
    exec $s release.nix -A build.$(if [ $(uname -s) = Darwin ]; then echo x86_64-darwin; elif [[ $(uname -m) =~ ^i[3456]86$ ]]; then echo i686-linux; else echo x86_64-linux; fi) --exclude tarball --command '
        configureFlags+=\" \$c --prefix=$(pwd)/inst --sysconfdir=$(pwd)/inst/etc\"
        return
    '" \
    "$@"