mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-27 12:06:33 +03:00
47b2b110cc
It appears the pinned attrset is a bit adhoc. This generalizes pinned.nix so that you can do: $ nix build -f . pinned.stable.hwi $ nix build -f . pinned.unstable.hwi etc Signed-off-by: William Casarin <jb55@jb55.com>
19 lines
551 B
Nix
19 lines
551 B
Nix
let
|
|
nixpkgsPinned = import ./nixpkgs-pinned.nix;
|
|
nixpkgsStable = import nixpkgsPinned.nixpkgs { config = {}; overlays = []; };
|
|
nixpkgsUnstable = import nixpkgsPinned.nixpkgs-unstable { config = {}; overlays = []; };
|
|
nixBitcoinPkgsStable = import ./. { pkgs = nixpkgsStable; };
|
|
nixBitcoinPkgsUnstable = import ./. { pkgs = nixpkgsUnstable; };
|
|
in
|
|
{
|
|
inherit (nixpkgsUnstable)
|
|
bitcoin
|
|
bitcoind
|
|
clightning
|
|
lnd;
|
|
inherit (nixBitcoinPkgsUnstable) electrs;
|
|
|
|
stable = nixBitcoinPkgsStable;
|
|
unstable = nixBitcoinPkgsUnstable;
|
|
}
|