nix/lib/nixpkgs.nix

7 lines
385 B
Nix
Raw Normal View History

2023-09-19 11:05:35 +02:00
# A nixpkgs instance that is grabbed from the pinned nixpkgs commit in the lock file
# Useful to avoid using channels when using legacy nix commands
2023-09-19 13:44:09 +02:00
let nixpkgs-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.nixpkgs.locked;
2023-09-19 11:19:59 +02:00
in import (fetchTarball {
2023-09-19 11:09:55 +02:00
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";
sha256 = nixpkgs-lock.narHash;
2023-09-19 11:05:35 +02:00
})