Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nix: Querying packages' packages

Tags:

package

nix

I can query available packages w/ nix-env -qa [package] but how can I look for optional packages (e.g. libraries) that depend on a primary package and can be loaded or installed separately? Example: Coq (coq-8.6) has packages coqPackages_8_6.ssreflect and coqPackages_8_6.mathcomp that I can get no information about in Nix AFAIK

like image 307
jaam Avatar asked Jan 04 '23 21:01

jaam


1 Answers

nix search can also be used to search for packages. Caching all available packages is slow, but searching the cache is quite fast! Check nix search --help!

like image 105
Dominik Schrempf Avatar answered May 16 '23 06:05

Dominik Schrempf