about summary refs log tree commit diff
path: root/dev-shell
diff options
context:
space:
mode:
Diffstat (limited to 'dev-shell')
-rwxr-xr-xdev-shell12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-shell b/dev-shell
new file mode 100755
index 000000000000..8579939a7b54
--- /dev/null
+++ b/dev-shell
@@ -0,0 +1,12 @@
+#! /bin/sh
+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
+    '" \
+    "$@"