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

Rework handling of multiple-outputs

bennofs opened this issue · comments

The current code for handling multiple outputs is suboptimal, printing ".out" when it is not necessary, or using an alias for a different output (NixOS/nixpkgs#168843 (comment)).

We should do this properly, only printing outputs when the derivation is multi-output, and using an attribute that already has the correct output if there is one.