1
Fork 0
satellite/devshells/bootstrap/nixpkgs.nix

9 lines
372 B
Nix
Raw Normal View History

2022-12-28 13:27:18 +01:00
# 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
2023-12-10 23:48:46 +01:00
let lock = (builtins.fromJSON (builtins.readFile ../../flake.lock)).nodes.nixpkgs.locked;
2022-12-28 13:27:18 +01:00
in
import (fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
sha256 = lock.narHash;
})