2022-12-18 10:47:52 -08:00
|
|
|
nbPkgs: python3:
|
|
|
|
rec {
|
|
|
|
pyPkgsOverrides = self: super: let
|
|
|
|
inherit (self) callPackage;
|
|
|
|
clightningPkg = pkg: callPackage pkg { inherit (nbPkgs.pinned) clightning; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
coincurve = callPackage ./coincurve {};
|
|
|
|
txzmq = callPackage ./txzmq {};
|
2020-11-12 09:07:38 -08:00
|
|
|
|
2022-12-18 10:47:52 -08:00
|
|
|
pyln-client = clightningPkg ./pyln-client;
|
|
|
|
pyln-proto = clightningPkg ./pyln-proto;
|
|
|
|
pyln-bolt7 = clightningPkg ./pyln-bolt7;
|
|
|
|
pylightning = clightningPkg ./pylightning;
|
2022-05-05 11:43:10 -07:00
|
|
|
|
2022-12-18 10:47:52 -08:00
|
|
|
# Packages only used by joinmarket
|
2022-12-18 10:30:40 -08:00
|
|
|
bencoderpyx = callPackage ./bencoderpyx {};
|
|
|
|
chromalog = callPackage ./chromalog {};
|
2022-12-18 10:48:28 -08:00
|
|
|
python-bitcointx = callPackage ./python-bitcointx {
|
|
|
|
inherit (nbPkgs) secp256k1;
|
|
|
|
openssl = super.pkgs.openssl_1_1;
|
|
|
|
};
|
2022-12-18 10:30:40 -08:00
|
|
|
runes = callPackage ./runes {};
|
|
|
|
sha256 = callPackage ./sha256 {};
|
2022-12-18 10:47:52 -08:00
|
|
|
};
|
2022-12-18 10:30:40 -08:00
|
|
|
|
2022-12-18 10:47:52 -08:00
|
|
|
# Joinmarket requires a custom package set because it uses older versions of Python pkgs
|
|
|
|
pyPkgsOverridesJoinmarket = self: super: let
|
|
|
|
inherit (self) callPackage;
|
|
|
|
joinmarketPkg = pkg: callPackage pkg { inherit (nbPkgs.joinmarket) version src; };
|
|
|
|
in
|
|
|
|
(pyPkgsOverrides self super) // {
|
2022-12-18 10:30:40 -08:00
|
|
|
joinmarketbase = joinmarketPkg ./jmbase;
|
|
|
|
joinmarketclient = joinmarketPkg ./jmclient;
|
|
|
|
joinmarketbitcoin = joinmarketPkg ./jmbitcoin;
|
|
|
|
joinmarketdaemon = joinmarketPkg ./jmdaemon;
|
|
|
|
|
|
|
|
## Specific versions of packages that already exist in nixpkgs
|
|
|
|
|
|
|
|
# cryptography 3.3.2, required by joinmarketdaemon
|
2022-12-18 10:47:52 -08:00
|
|
|
cryptography = callPackage ./specific-versions/cryptography {
|
2022-12-18 10:48:28 -08:00
|
|
|
openssl = super.pkgs.openssl_1_1;
|
2022-12-18 10:30:40 -08:00
|
|
|
cryptography_vectors = callPackage ./specific-versions/cryptography/vectors.nix {};
|
|
|
|
};
|
|
|
|
|
|
|
|
# autobahn 20.12.3, required by joinmarketclient
|
|
|
|
autobahn = callPackage ./specific-versions/autobahn.nix {};
|
|
|
|
|
2023-05-07 06:55:30 -07:00
|
|
|
# pyopenssl 21.0.0, required by joinmarketdaemon
|
|
|
|
pyopenssl = callPackage ./specific-versions/pyopenssl.nix {};
|
2022-12-18 10:48:28 -08:00
|
|
|
|
2023-05-07 06:55:30 -07:00
|
|
|
# twisted 22.4.0, required by joinmarketbase
|
2022-12-18 10:48:28 -08:00
|
|
|
twisted = callPackage ./specific-versions/twisted.nix {};
|
2022-12-18 10:47:52 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
nbPython3Packages = (python3.override {
|
|
|
|
packageOverrides = pyPkgsOverrides;
|
|
|
|
}).pkgs;
|
|
|
|
|
|
|
|
nbPython3PackagesJoinmarket = (python3.override {
|
|
|
|
packageOverrides = pyPkgsOverridesJoinmarket;
|
|
|
|
}).pkgs;
|
2020-11-12 09:07:38 -08:00
|
|
|
}
|