2014-05-22 23:41:09 -04:00
|
|
|
#!/usr/bin/env bash
|
2013-08-19 07:22:56 -04:00
|
|
|
if [ -e tests/test-tmp ]; then
|
|
|
|
chmod -R u+w tests/test-tmp
|
|
|
|
rm -rf tests/test-tmp
|
|
|
|
fi
|
|
|
|
|
2013-07-19 10:51:31 -04:00
|
|
|
s=$(type -p nix-shell)
|
|
|
|
exec $s release.nix -A tarball --command "
|
2014-07-16 05:19:12 -04:00
|
|
|
unset http_proxy
|
|
|
|
export NIX_REMOTE=$NIX_REMOTE
|
2013-07-19 10:51:31 -04:00
|
|
|
export NIX_PATH='$NIX_PATH'
|
|
|
|
export NIX_BUILD_SHELL=$(type -p bash)
|
|
|
|
export c=\$configureFlags
|
2014-07-16 05:19:12 -04:00
|
|
|
exec $s release.nix -A build.$(if [ $(uname -s) = Darwin ]; then echo x86_64-darwin; else echo x86_64-linux; fi) --exclude tarball --command '
|
2013-07-19 10:51:31 -04:00
|
|
|
configureFlags+=\" \$c --prefix=$(pwd)/inst --sysconfdir=$(pwd)/inst/etc\"
|
|
|
|
return
|
|
|
|
'" \
|
|
|
|
"$@"
|