2020-11-12 09:07:38 -08:00
|
|
|
{ stdenv, lib, fetchurl, python3, nbPython3Packages, pkgs }:
|
2019-08-05 00:50:55 -07:00
|
|
|
|
|
|
|
let
|
2021-01-17 05:16:42 -08:00
|
|
|
version = "0.8.0-a5e8879";
|
2019-08-05 00:50:55 -07:00
|
|
|
src = fetchurl {
|
2021-01-17 05:16:42 -08:00
|
|
|
url = "https://github.com/JoinMarket-Org/joinmarket-clientserver/archive/a5e8879d119c8702476da32957d2cfecc3584c89.tar.gz";
|
|
|
|
sha256 = "1l98mjk5rc5kji4yads6iicvyps0blsddwzclsiv0ha1az6dzpci";
|
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
|
2021-01-17 04:24:57 -08:00
|
|
|
matplotlib # for ob-watcher
|
2019-08-05 00:50:55 -07:00
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
|
2021-01-01 04:57:35 -08:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2019-08-05 00:50:55 -07:00
|
|
|
|
|
|
|
# add-utxo.py -> bin/jm-add-utxo
|
|
|
|
cpBin() {
|
2021-01-01 04:57:35 -08:00
|
|
|
cp scripts/$1 $out/bin/jm-''${1%.py}
|
2019-08-05 00:50:55 -07:00
|
|
|
}
|
2021-01-01 04:57:35 -08:00
|
|
|
|
|
|
|
cp scripts/joinmarketd.py $out/bin/joinmarketd
|
2021-01-17 04:24:57 -08:00
|
|
|
cp scripts/obwatch/ob-watcher.py $out/bin/ob-watcher
|
2019-08-05 00:50:55 -07:00
|
|
|
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
|
2021-01-17 04:24:57 -08:00
|
|
|
|
|
|
|
# This file must be placed in the same dir as ob-watcher
|
|
|
|
cp scripts/obwatch/orderbook.html $out/bin/orderbook.html
|
2019-08-05 00:50:55 -07:00
|
|
|
'';
|
|
|
|
}
|