Forrest logo
back to the nix tool

nix3-registry:tldr:2e32a

nix3-registry: Pin an entry to the latest version of the branch, or a particular reivision of a github repository.
$ nix registry pin ${entry} ${github:owner-repo-branch_or_revision}
try on your machine

The command "nix registry pin" is used in the Nix package manager to update or add an entry in the registry with a specific package version.

Here is the breakdown of the command:

  • "nix registry pin": This is the main command used to interact with the package registry.
  • "${entry}": This is a placeholder for the name of the package entry in the registry that you want to update or add.
  • "${github:owner-repo-branch_or_revision}": This is the GitHub reference syntax that specifies the package version to pin. It consists of the GitHub repository owner, repository name, and either a branch name or a specific commit revision.

Overall, this command allows you to pin a specific package version from a GitHub repository by adding or updating an entry in the package registry.

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