5f7af10bae
We are now able to pull in the same revision of nixpkgs as listed in the lock file.
14 lines
284 B
Nix
14 lines
284 B
Nix
let
|
|
inherit (builtins)
|
|
fetchTarball
|
|
fromJSON
|
|
readFile
|
|
;
|
|
nixos = (fromJSON (readFile ./flake.lock)).nodes.nixos.locked;
|
|
nixpkgs = fetchTarball {
|
|
url = "https://github.com/NixOS/nixpkgs/archive/${nixos.rev}.tar.gz";
|
|
sha256 = nixos.narHash;
|
|
};
|
|
in
|
|
nixpkgs
|