nix-community / nix-index

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

Support for listing texlive packages #253

Closed anka-213 closed 3 months ago

anka-213 commented 3 months ago

Currently if one searches for files in a texlive package, it will only list the combined packages, like texlive.scheme-medium etc. I would like to be able to find individual packages.

As far as I know all texlive packages are built by the texlive.scheme-full package, so adding those to EXTRA_SCOPES would be useful for finding latex packages by filename.

On a related note: is it possible to manually index a subattribute without needing to modify the source code of nix-index?

anka-213 commented 3 months ago

Hmm, it seems like the packages aren't derivations themselves, but instead contain a pkgs attribute, which is a list of packages, so adding it to EXTRA_SCOPES might not be enough.

Edit: However, adding texlive.pkgs to EXTRA_SCOPES might fix the issue.