nix-shell allows the -p option to be repeated before each package:
nix-shell -p ruby -p bundler
Currently, the -p handler just appends the argument after the -p onto the end of NIX_SHELL_PACKAGES, meaning there's no separation between them, e.g. "rubybundler". The fix is to additionally add a space if NIX_SHELL_PACKAGES is already non-empty.
nix-shell
allows the-p
option to be repeated before each package:Currently, the
-p
handler just appends the argument after the-p
onto the end of NIX_SHELL_PACKAGES, meaning there's no separation between them, e.g. "rubybundler". The fix is to additionally add a space if NIX_SHELL_PACKAGES is already non-empty.