nix-community / nix-index

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

Rework handling of multiple-outputs #208

Open bennofs opened 1 year ago

bennofs commented 1 year ago

The current code for handling multiple outputs is suboptimal, printing ".out" when it is not necessary, or using an alias for a different output (https://github.com/NixOS/nixpkgs/issues/168843#issuecomment-1463566940).

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.