nix-community / nix-index

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

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

Open Ma27 opened 7 months ago

Ma27 commented 7 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 4 months ago

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

doronbehar commented 2 months ago

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