nixos-search icon indicating copy to clipboard operation
nixos-search copied to clipboard

Index all texlive.* packages

Open Ekleog opened this issue 3 years ago • 6 comments

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?

Ekleog avatar Mar 14 '22 13:03 Ekleog

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.

ysndr avatar Mar 15 '22 17:03 ysndr

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)

Ekleog avatar Mar 16 '22 13:03 Ekleog

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.

ysndr avatar Mar 16 '22 17:03 ysndr

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

tannerlegvold avatar Feb 05 '24 23:02 tannerlegvold

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

ncfavier avatar Feb 06 '24 09:02 ncfavier

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

tannerlegvold avatar Feb 06 '24 18:02 tannerlegvold