Closed 9999years closed 1 year ago
> We would transform (e.g.) `nix develop -L .#ghc942` into `nix develop --command fish -L .#ghc942`, which Nix interprets as running the command `fish -L .#ghc942` in the shell. This patch puts the `--command fish` bit at the end, instead of at the front, so the `-L .#ghc942` arguments are correctly passed to `nix develop`.
The Nix CLI is inconsistent with the
--command
flag...We would transform (e.g.)
nix develop -L .#ghc942
intonix develop --command fish -L .#ghc942
, which Nix interprets as running the commandfish -L .#ghc942
in the shell. This patch puts the--command fish
bit at the end, instead of at the front, so the-L .#ghc942
arguments are correctly passed tonix develop
.Future work: actually writing some tests lol