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