-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 with different binary name #4498
Comments
Would also be useful for packages like |
Kinda related: I still get confused when choosing between |
I've noticed this issue as well. One could claim that this is what the
You can use
Cmdline args are currently ignored anyway: #3949 |
nix shell nixpkgs#ripgrep -c rg -w hello Works for me. Thanks! |
2 solutions to this problem:
|
Some programs don't match with their executable names, e.g.
ripgrep -> rg
neovim -> nvim
$ nix run nixpkgs#ripgrep unable to execute '/nix/store/flwx9dk03037cfbqhkvlb9dv85k88gbq-ripgrep-12.1.1/bin/ripgrep': No such file or directory
It would be nice to detect their executable names automatically or get the specified name from a user input in arguments. Alternative solution would be to go into a
nix shell nixpkgs#ripgrep
and run the program in there but that would be a two step procedure. I would really prefer one of these commands instead of a subshell:or
Additional context
My nix --version is:
nix (Nix) 2.4pre20201201_5a6ddb3
The text was updated successfully, but these errors were encountered: