-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
nix run should not remove arguments after the first positional one #6933
Comments
Previous discussion: https://discourse.nixos.org/t/proposal-simpler-nix-run-syntax/16281 |
I'm fine with not supporting this use without |
Triaged in Nix team meeting:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-04-28-nix-team-meeting-minutes-50/27698/1 |
Discussed in Nix team meeting:
|
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2023-05-05-nix-team-meeting-minutes-52/27893/1 |
As I just got frustrated by this for the nth time enough to open #8537 before seeing this issue with an approved label, I thought I should ask whether there are any particular nuances that will make implementing this difficult or if it'd be good for me to pick up for a PR? |
Personally I haven't made changes to the argument parsing yet; perhaps @Ericson2314 or @edolstra have some insights into how to approach the implementation of this? As far as the problem statement goes
I think this captures it pretty well. |
I'll take a crack at it once I pop a few yaks off the shaving stack ( |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/equivalent-of-nix-shell-run-with-nix-shell-or-nix-develop/34712/6 |
Describe the bug
nix run -f '<nixpkgs>' nix flake show --allow-import-from-derivation
does not pass--allow-import-from-derivation
to the child nix process as expected.Workaround:
nix run -f '<nixpkgs>' -- nix flake show --no-eval-cache
(adding--
).nix-env --version
outputTested on both
nix (Nix) 2.8.1
andnix (Nix) 2.10.0pre20220812_78bd377
(current lazy-trees).The text was updated successfully, but these errors were encountered: