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