1: #!/usr/bin/env bash 2: 3: # 'in_nix_shell "foo bar" baz quux' 4: # becomes 5: # 'nix-shell -p foo -p bar --run "baz quux"' 6: 7: PKGS="$1" 8: shift 9: 10: nix-shell -p "$PKGS" --run "$*"