nix-bitcoin/pkgs/pinned.nix
William Casarin 47b2b110cc pinned: make it easy to use pinned packages
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>
2020-04-24 16:58:00 -07:00

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;
}