2020-11-12 09:07:38 -08:00
|
|
|
{ stdenv, lib, fetchurl, python3, nbPython3Packages, pkgs }:
|
2019-08-05 00:50:55 -07:00
|
|
|
|
|
|
|
let
|
2020-10-18 08:41:45 -07:00
|
|
|
version = "0.7.2";
|
2019-08-05 00:50:55 -07:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/JoinMarket-Org/joinmarket-clientserver/archive/v${version}.tar.gz";
|
2020-10-18 08:41:45 -07:00
|
|
|
sha256 = "03gvs20d2cfzy9x82l6v4c69w0j9mr4p9zj2hpymnb6xs1yq6dr1";
|
2019-08-05 00:50:55 -07:00
|
|
|
};
|
|
|
|
|
2020-11-12 09:07:38 -08:00
|
|
|
runtimePackages = with nbPython3Packages; [
|
2019-08-05 00:50:55 -07:00
|
|
|
joinmarketbase
|
|
|
|
joinmarketclient
|
|
|
|
joinmarketbitcoin
|
|
|
|
joinmarketdaemon
|
|
|
|
];
|
|
|
|
|
2020-11-12 09:07:38 -08:00
|
|
|
pythonEnv = python3.withPackages (_: runtimePackages);
|
2019-08-05 00:50:55 -07:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "joinmarket";
|
2020-10-18 08:41:45 -07:00
|
|
|
inherit version src;
|
2019-08-05 00:50:55 -07:00
|
|
|
|
|
|
|
buildInputs = [ pythonEnv ];
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $src-unpacked $out/bin
|
|
|
|
tar xzf $src --strip 1 -C $src-unpacked
|
|
|
|
|
|
|
|
# add-utxo.py -> bin/jm-add-utxo
|
|
|
|
cpBin() {
|
|
|
|
cp $src-unpacked/scripts/$1 $out/bin/jm-''${1%.py}
|
|
|
|
}
|
|
|
|
cp $src-unpacked/scripts/joinmarketd.py $out/bin/joinmarketd
|
|
|
|
cpBin add-utxo.py
|
|
|
|
cpBin convert_old_wallet.py
|
|
|
|
cpBin receive-payjoin.py
|
|
|
|
cpBin sendpayment.py
|
|
|
|
cpBin sendtomany.py
|
|
|
|
cpBin tumbler.py
|
|
|
|
cpBin wallet-tool.py
|
|
|
|
cpBin yg-privacyenhanced.py
|
2020-10-18 08:41:45 -07:00
|
|
|
cpBin genwallet.py
|
2019-08-05 00:50:55 -07:00
|
|
|
|
|
|
|
chmod +x -R $out/bin
|
|
|
|
patchShebangs $out/bin
|
|
|
|
'';
|
|
|
|
}
|