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>
This commit is contained in:
parent
39ff39eb32
commit
47b2b110cc
@ -1,13 +1,18 @@
|
|||||||
let
|
let
|
||||||
nixpkgsPinned = import ./nixpkgs-pinned.nix;
|
nixpkgsPinned = import ./nixpkgs-pinned.nix;
|
||||||
unstable = import nixpkgsPinned.nixpkgs-unstable { config = {}; overlays = []; };
|
nixpkgsStable = import nixpkgsPinned.nixpkgs { config = {}; overlays = []; };
|
||||||
nixBitcoinPkgsUnstable = import ./. { pkgs = unstable; };
|
nixpkgsUnstable = import nixpkgsPinned.nixpkgs-unstable { config = {}; overlays = []; };
|
||||||
|
nixBitcoinPkgsStable = import ./. { pkgs = nixpkgsStable; };
|
||||||
|
nixBitcoinPkgsUnstable = import ./. { pkgs = nixpkgsUnstable; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
inherit (unstable)
|
inherit (nixpkgsUnstable)
|
||||||
bitcoin
|
bitcoin
|
||||||
bitcoind
|
bitcoind
|
||||||
clightning
|
clightning
|
||||||
lnd;
|
lnd;
|
||||||
inherit (nixBitcoinPkgsUnstable) electrs;
|
inherit (nixBitcoinPkgsUnstable) electrs;
|
||||||
|
|
||||||
|
stable = nixBitcoinPkgsStable;
|
||||||
|
unstable = nixBitcoinPkgsUnstable;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user