nix-bitcoin/pkgs/default.nix

61 lines
2.2 KiB
Nix
Raw Normal View History

let
nixpkgsPinned = import ./nixpkgs-pinned.nix;
in
# Set default values for use without flakes
{ pkgs ? import <nixpkgs> { config = {}; overlays = []; }
, pkgsUnstable ? import nixpkgsPinned.nixpkgs-unstable {
inherit (pkgs.stdenv) system;
config = {};
overlays = [];
}
}:
let self = {
# TODO-EXTERNAL:
# Remove bitcoin and bitcoind 24.1 packages and replace with 25.0 from nixpkgs
# when https://github.com/bitcoin/bitcoin/issues/27722 has been resolved
bitcoin = pkgsUnstable.libsForQt5.callPackage ./bitcoin {
stdenv = if pkgsUnstable.stdenv.isDarwin then pkgsUnstable.darwin.apple_sdk_11_0.stdenv else pkgsUnstable.stdenv;
withGui = true;
inherit (pkgsUnstable.darwin) autoSignDarwinBinariesHook;
};
bitcoind = pkgsUnstable.callPackage ./bitcoin {
withGui = false;
inherit (pkgsUnstable.darwin) autoSignDarwinBinariesHook;
};
clightning-rest = pkgs.callPackage ./clightning-rest { inherit (self) fetchNodeModules; };
2020-12-21 13:50:50 +03:00
clboss = pkgs.callPackage ./clboss { };
2021-12-20 17:16:38 +03:00
clightning-plugins = pkgs.recurseIntoAttrs (import ./clightning-plugins pkgs self.nbPython3Packages);
joinmarket = pkgs.callPackage ./joinmarket { inherit (self) nbPython3PackagesJoinmarket; };
2022-03-29 22:48:56 +03:00
lndinit = pkgs.callPackage ./lndinit { };
2021-12-20 17:16:38 +03:00
liquid-swap = pkgs.python3Packages.callPackage ./liquid-swap { };
rtl = pkgs.callPackage ./rtl { inherit (self) fetchNodeModules; };
# The secp256k1 version used by joinmarket
secp256k1 = pkgs.callPackage ./secp256k1 { };
2022-08-27 07:14:52 +03:00
trustedcoin = pkgs.callPackage ./trustedcoin { };
2023-05-07 21:30:36 +03:00
# TODO-EXTERNAL:
# Remove this when https://github.com/lightningnetwork/lnd/pull/7672
# has been resolved
lnd = pkgsUnstable.callPackage ./lnd { };
pyPkgs = import ./python-packages self pkgs.python3;
inherit (self.pyPkgs)
nbPython3Packages
nbPython3PackagesJoinmarket;
2022-08-21 15:41:36 +03:00
fetchNodeModules = pkgs.callPackage ./build-support/fetch-node-modules.nix { };
2021-12-20 17:16:38 +03:00
# Internal pkgs
netns-exec = pkgs.callPackage ./netns-exec { };
krops = import ./krops { inherit pkgs; };
2021-12-20 17:16:38 +03:00
# Deprecated pkgs
generate-secrets = import ./generate-secrets-deprecated.nix;
nixops19_09 = pkgs.callPackage ./nixops { };
pinned = import ./pinned.nix pkgs pkgsUnstable;
modulesPkgs = self // self.pinned;
}; in self