mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-27 02:12:45 +03:00
1a16e55237
Remove obsolete passthru from joinmarket because joinmarket packages are now accessible via pkgs/python-packages.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ stdenv, lib, fetchurl, python3, nbPython3Packages, pkgs }:
|
|
|
|
let
|
|
version = "0.7.2";
|
|
src = fetchurl {
|
|
url = "https://github.com/JoinMarket-Org/joinmarket-clientserver/archive/v${version}.tar.gz";
|
|
sha256 = "03gvs20d2cfzy9x82l6v4c69w0j9mr4p9zj2hpymnb6xs1yq6dr1";
|
|
};
|
|
|
|
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
|
|
'';
|
|
}
|