mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-26 16:18:52 +03:00
d428755399
This follows common flake naming conventions.
21 lines
479 B
Nix
21 lines
479 B
Nix
let
|
|
fetchNixpkgs = { rev, sha256 }:
|
|
builtins.fetchTarball {
|
|
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
|
|
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
|
|
{
|
|
nixpkgs = fetch lockedInputs.nixpkgs;
|
|
nixpkgs-unstable = fetch lockedInputs.nixpkgs-unstable;
|
|
}
|