nix-bitcoin/pkgs/nixpkgs-pinned.nix

21 lines
478 B
Nix
Raw Normal View History

let
fetchNixpkgs = { rev, sha256 }:
2019-11-07 12:57:00 -08:00
builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
2019-11-07 12:57:00 -08:00
inherit sha256;
};
fetch = input: let
inherit (input) locked;
in fetchNixpkgs {
inherit (locked) rev;
sha256 = locked.narHash;
};
lockedInputs = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes;
in
2019-01-26 10:12:08 -08:00
{
nixpkgs = fetch lockedInputs.nixpkgs;
nixpkgs-unstable = fetch lockedInputs.nixpkgsUnstable;
2019-01-26 10:12:08 -08:00
}