devos/nixpkgs-compat.nix
Timothy DeHerrera 5f7af10bae
shell: add a nixpkgs-compat file
We are now able to pull in the same revision of nixpkgs as listed in
the lock file.
2020-12-27 00:40:12 -07:00

13 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