diff options
Diffstat (limited to 'dev-shell')
-rwxr-xr-x | dev-shell | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-shell b/dev-shell new file mode 100755 index 000000000000..eae9246f4710 --- /dev/null +++ b/dev-shell @@ -0,0 +1,18 @@ +#!/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; else echo x86_64-linux; fi) --exclude tarball --command ' + configureFlags+=\" \$c --prefix=$(pwd)/inst --sysconfdir=$(pwd)/inst/etc\" + return + '" \ + "$@" |