Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DUX-1066] Fix --command with nix develop #21

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

9999years
Copy link
Member

@9999years 9999years commented Feb 21, 2023

The Nix CLI is inconsistent with the --command flag...

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.

Future work: actually writing some tests lol

@9999years 9999years added the patch A patch-level change (backwards-compatible bug fixes) label Feb 21, 2023
@9999years 9999years merged commit a55c647 into main Feb 21, 2023
@9999years 9999years deleted the rebeccat/fix-command-flag branch February 21, 2023 20:38
@github-actions
Copy link
Contributor

@9999years 9999years changed the title Fix --command with nix develop [DUX-1066] Fix --command with nix develop Feb 22, 2023
@linear
Copy link

linear bot commented Feb 22, 2023

DUX-1066 Allow passing arguments to `nix develop` in `nix-your-shell`

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch A patch-level change (backwards-compatible bug fixes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant