|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
R""(
Note: this command's interface is based heavily around installables, which you may want to read about first (nix --help).
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 (which can be evaluated, that is, a flake or Nix expression, but not a store path or store derivation 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:
)""