fdfafb2f40
Update to 0.8.0 with hotfix for genwallet script Includes module versioning error with migration instructions
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ stdenv, lib, fetchurl, python3, nbPython3Packages, pkgs }:
|
|
|
|
let
|
|
version = "0.8.0-bcfa7eb";
|
|
src = fetchurl {
|
|
url = "https://github.com/JoinMarket-Org/joinmarket-clientserver/archive/bcfa7eb4ea3ca51b7ecae9aebe65c634a4ab8b0e.tar.gz";
|
|
sha256 = "05akzaxi2vqh3hln6qkr6frfas9xd0d95xa3wd56pj8bzknd410m";
|
|
};
|
|
|
|
runtimePackages = with nbPython3Packages; [
|
|
joinmarketbase
|
|
joinmarketclient
|
|
joinmarketbitcoin
|
|
joinmarketdaemon
|
|
];
|
|
|
|
pythonEnv = python3.withPackages (_: runtimePackages);
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "joinmarket";
|
|
inherit version src;
|
|
|
|
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
|
|
cpBin genwallet.py
|
|
|
|
chmod +x -R $out/bin
|
|
patchShebangs $out/bin
|
|
'';
|
|
}
|