-
-
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 search with -f
works poorly with "installable" semantics
#5642
Comments
So here’s my suspicion as to what is happening (here and in #5641):
At the end of the day, search can be made to work with: $ cat <<EOF > default.nix
{ legacyPackages.pkgs = import <nixpkgs> {}; }
EOF
$ nix search -f . . firefox-beta-bin
* legacyPackages.pkgs.firefox-beta-bin (94.0b2)
Mozilla Firefox, free web browser (binary package)
* legacyPackages.pkgs.firefox-beta-bin-unwrapped (94.0b2)
Mozilla Firefox, free web browser (binary package) (which is a lot of hops to go through ;) ) |
Why is there a “non-flakes escape hatch”? flakes are an optional, experimental feature, and presumably shouldn't be involved without explicit user opt-in. |
So is the new cli (including |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/nix-2-4-and-what-s-next/16257/1 |
Relevant: #7668 |
CC @infinisil |
Fixed by: #7668 (edit: duplicate with above, sorry) |
Describe the bug
According to the help text, a search query has to be given after an installable.
With
-f
use, which is the non-flakes escape hatch,nix search
cannot actually be used to search all the packages.Steps To Reproduce
(Ignore the lack of attribute names in results...)
Expected behavior
Compare with (purposefully redundant) use with Nix 2.3
nix-env --version
outputThe text was updated successfully, but these errors were encountered: