nix-community / nix-index

Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius]
Other
866 stars 48 forks source link

Make `--top-level` the default behavior of `nix-locate` #243

Open Ma27 opened 8 months ago

Ma27 commented 8 months ago

It happens pretty often to me that I'm trying to find out which packages contain a certain header file (e.g. unistd.h). In those cases I usually don't care at all about which e.g. FHS env has this header as well.

I can't remember a single time where this was actually helpful, so I'm questioning whether this is a sensible default. I'll use this patch in my own setup for now, but I thought I could suggest it here as well.

cc @RaitoBezarius @figsoda @bennofs

Ma27 commented 5 months ago

Rebased onto latest master now. Friendly ping @k900 @RaitoBezarius

doronbehar commented 3 months ago

Looks good to me ! Waiting for this to get in...

Frontear commented 1 day ago

Bump, this would be nice to get in! I've already used it through a personal patch and it works like a charm.

EDIT: sorry for the cross-links, GitHub doesn't like that I force pushed to update the commit description.