summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install-as-needed3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install-as-needed b/scripts/install-as-needed
new file mode 100755
index 0000000..ab48655
--- /dev/null
+++ b/scripts/install-as-needed
@@ -0,0 +1,3 @@
+#! /usr/bin/env sh
+export NIXPKGS_ALLOW_UNFREE=1
+nix shell --impure --expr "with (import (builtins.getFlake ''nixpkgs'') {});$1" --command ${@:2}