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