blog/content/post/search-packages-in-nix.md
2022-08-24 11:01:13 +05:30

1.5 KiB

title date lastmod draft keywords description tags categories author comment toc autoCollapseToc postMetaInFooter hiddenFromHomePage contentCopyright reward mathjax mathjaxEnableSingleDollar mathjaxEnableAutoNumber hideHeaderAndFooter flowchartDiagrams sequenceDiagrams
Search Packages in Nix 2022-08-24T10:53:22+05:30 2022-08-24T10:53:22+05:30 false
nix search
nix
linux
false false false true false false false false false false false
enable options
false
enable options
false

Normally if you run nix search <package> it will complain about something experimental.

Assuming you read the message and understand what you are getting yourself into, follow the instructions to enable search. Alternatively, you can search on https://search.nixos.org/.

Put the following in ~/.config/nix/nix.conf

experimental-features = nix-command flakes

Now search will work but it will rebuild cache every time you search. To avoid building cache, run nix registry pin nixpkgs.

Search packages with nix search nixpkgs <package>.