Forrest logo
back to the nix tool

nix3-registry:tldr:20408

nix3-registry: Pin the `nixpkgs` revision to the current version of the upstream repository.
$ nix registry pin ${nixpkgs}
try on your machine

The command "nix registry pin ${nixpkgs}" is used in the Nix package manager to pin a specific version of a package or package set in the registry.

Here's a breakdown of the command:

  • "nix registry pin": This is the command to pin a package or package set in the Nix registry.
  • "${nixpkgs}": This is a placeholder for the specific package or package set you want to pin. It could refer to a package name or a package set expression.

By running this command, you instruct Nix to pin the specified package or package set in the registry, meaning that the registry will always use that specific version of the package when it is requested. This ensures consistent behavior and reproducibility of package installations.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nix tool