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