NixOS / nixos-search

Search NixOS packages and options
https://search.nixos.org
MIT License
385 stars 98 forks source link

Index all texlive.* packages #442

Open Ekleog opened 2 years ago

Ekleog commented 2 years ago

AFAIU we have almost all CTAN packages packaged already. However, they don't display in the package search page.

I'm thinking it'd make sense to index all texlive. packages and not only texlive.combined. ones. Unfortunately, I can't find anything when I grep for haskellPackages in this repo, which does appear in the search page.

Would such a change make sense to you?

ysndr commented 2 years ago

The file that is (going to) be used for this is defined as part of nixpkgs: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/packages-config.nix

You can make a PR there, once #419 is merged, we will list nixpkgs according to that file. Texlive is huge though, I don't exactly know about possible implications of including that group.

Ekleog commented 2 years ago

Interesting thanks! Do you happen to know the command that can be used to regenerate the index locally, so that I can check the compile time and compiled size don't blow up? (and also add it as a comment on top of the file you linked so it can be found easier thereafter)

ysndr commented 2 years ago

Just implemented (not yet merged in #445).

You can use

$ nix run github:nixos/nixos-search/cli/nixpkgs-archive-import -- --json nixpkgs-archive <path-to-archive or folder> 

Sadly, you wont see it on the official frontend. you could set up your own elasticsearch locally and configure the push operation and frontend accordingly or grep the json output (I'm sorry) for it.

tannerlegvold commented 5 months ago

Heads up its looks like this got merged into main two years ago. So this issue should be closed.

ncfavier commented 5 months ago

This issue is about indexing texlive packages. Texlive packages are still not indexed.

tannerlegvold commented 5 months ago

Ah, sorry about that. I should have read more carefully.