R""(
Show all packages in the nixpkgs
flake:
Show packages in the nixpkgs
flake containing blender
in its name or description:
Search for packages underneath the attribute gnome3
in Nixpkgs:
Show all packages in the flake in the current directory:
Search for Firefox or Chromium:
Search for packages containing git
and either frontend
or gui
:
Search for packages containing neovim
but hide ones containing either gui
or python
:
or
nix search
searches installable that can be evaluated, that is, a flake or Nix expression, but not a store path or deriving path) for packages whose name or description matches all of the regular expressions regex. For each matching package, It prints the full attribute name (from the root of the installable), the version and the meta.description
field, highlighting the substrings that were matched by the regular expressions.
To show all packages, use the regular expression ^
. In contrast to .*
, it avoids highlighting the entire name and description of every package.
Note that in this context,
^
is the regex character to match the beginning of a string, not the delimiter for selecting a derivation output.
If no flake output attribute is given, nix search
searches for packages:
packages.<system>
.legacyPackages.<system>
, recursing into attribute sets that contain an attribute recurseForDerivations = true
.)""