nix-bitcoin/pkgs/nixpkgs-pinned.nix

21 lines
478 B
Nix
Raw Normal View History

let
fetchNixpkgs = { rev, sha256 }:
2019-11-07 23:57:00 +03:00
builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
2019-11-07 23:57:00 +03: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 21:12:08 +03:00
{
nixpkgs = fetch lockedInputs.nixpkgs;
nixpkgs-unstable = fetch lockedInputs.nixpkgsUnstable;
2019-01-26 21:12:08 +03:00
}