2021-08-16 11:42:06 +03:00
|
|
|
let
|
|
|
|
nixpkgsPinned = import ./nixpkgs-pinned.nix;
|
|
|
|
in
|
|
|
|
# Set default values for use without flakes
|
|
|
|
{ pkgs ? import <nixpkgs> { config = {}; overlays = []; }
|
2022-05-11 11:01:12 +03:00
|
|
|
, pkgsUnstable ? import nixpkgsPinned.nixpkgs-unstable {
|
2022-01-06 15:40:52 +03:00
|
|
|
inherit (pkgs.stdenv) system;
|
2022-05-11 11:01:12 +03:00
|
|
|
config = {};
|
|
|
|
overlays = [];
|
|
|
|
}
|
2021-08-16 11:42:06 +03:00
|
|
|
}:
|
2020-11-10 00:09:09 +03:00
|
|
|
let self = {
|
2023-06-01 11:58:16 +03:00
|
|
|
# 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;
|
|
|
|
};
|
2022-08-21 15:41:38 +03:00
|
|
|
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);
|
2022-12-18 21:47:52 +03:00
|
|
|
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 { };
|
2022-08-21 15:41:37 +03:00
|
|
|
rtl = pkgs.callPackage ./rtl { inherit (self) fetchNodeModules; };
|
2022-03-03 18:12:58 +03:00
|
|
|
# The secp256k1 version used by joinmarket
|
2021-02-05 15:37:18 +03:00
|
|
|
secp256k1 = pkgs.callPackage ./secp256k1 { };
|
2022-08-27 07:14:52 +03:00
|
|
|
trustedcoin = pkgs.callPackage ./trustedcoin { };
|
2020-03-04 20:08:46 +03:00
|
|
|
|
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 { };
|
|
|
|
|
2022-12-18 21:47:52 +03:00
|
|
|
pyPkgs = import ./python-packages self pkgs.python3;
|
|
|
|
inherit (self.pyPkgs)
|
|
|
|
nbPython3Packages
|
|
|
|
nbPython3PackagesJoinmarket;
|
2020-11-12 20:07:38 +03:00
|
|
|
|
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 { };
|
2022-07-03 20:49:09 +03:00
|
|
|
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 { };
|
|
|
|
|
2021-08-16 11:42:06 +03:00
|
|
|
pinned = import ./pinned.nix pkgs pkgsUnstable;
|
2020-08-04 17:11:51 +03:00
|
|
|
|
2020-11-10 00:09:09 +03:00
|
|
|
modulesPkgs = self // self.pinned;
|
|
|
|
}; in self
|