2023-09-19 18:05:35 +09: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 20:44:09 +09:00
|
|
|
let nixpkgs-lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes.nixpkgs.locked;
|
2023-09-19 18:19:59 +09:00
|
|
|
in import (fetchTarball {
|
2023-09-19 18:09:55 +09:00
|
|
|
url = "https://github.com/nixos/nixpkgs/archive/${nixpkgs-lock.rev}.tar.gz";
|
|
|
|
sha256 = nixpkgs-lock.narHash;
|
2023-09-19 18:05:35 +09:00
|
|
|
})
|