nix-community / nix-index

Quickly locate nix packages with specific files [maintainers=@bennofs @figsoda @raitobezarius]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set `top-level` to default to true

kstrafe opened this issue · comments

I don't see the point in defaulting to seeing the results that are not --top-level. For most use-cases I've had I only wanted to know which derivations provided some file, not what subderivations provided some file.

What benefit is it to me to see:
(zulip.out) 14,712 x /nix/store/ymihk5dxg7m5jkfmgk7vmbxw5gy6hr5i-python3-3.9.13/bin/python3.9

for instance when searching for bin/python?

I'm not arguing to remove it (maybe someone wants to find out what uses some derivation), but I am arguing that this is not the default/common use-case.

Should be done in #243