nixpkgs.nix 378 B

12345678910
  1. # A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
  2. # This is useful to avoid using channels when using legacy nix commands
  3. let
  4. lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
  5. in
  6. import (fetchTarball {
  7. url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
  8. sha256 = lock.narHash;
  9. })