OtherActive

Pinning Nixpkgs

Guide on pinning Nixpkgs to specific versions using various methods.

Open source page

Product features

Product features

Fetchers

Use fetchurl, fetchTarball, fetchGit or Nixpkgs fetchers in Nix expressions.

Finding specific commits and releases

Use status.nixos.org for latest tested commits and active release channels.

-I option

Pass Nixpkgs path via -I option to nix-build, nix-shell, etc.

NIX_PATH environment variable

Specify Nixpkgs location via NIX_PATH environment variable.

URL value types

Local file paths, pinned commits, channel versions, shorthand syntax, and release branches.