5ead2a7075
- add SNICKER to default config - update package - ob-watcher: copy vendorized js and css dependencies - add missing dependency to jmbase - use cryptography from pinned.nixpkgs-unstable
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{ stdenv, lib, fetchurl, python3, nbPython3Packages, pkgs }:
|
|
|
|
let
|
|
version = "0.8.2";
|
|
src = fetchurl {
|
|
url = "https://github.com/JoinMarket-Org/joinmarket-clientserver/archive/v${version}.tar.gz";
|
|
sha256 = "0bi1d49kn57b0775cd8gzsc13dbiivvnhrc61d1xb4z1cr3ih8q2";
|
|
};
|
|
|
|
runtimePackages = with nbPython3Packages; [
|
|
joinmarketbase
|
|
joinmarketclient
|
|
joinmarketbitcoin
|
|
joinmarketdaemon
|
|
matplotlib # for ob-watcher
|
|
];
|
|
|
|
pythonEnv = python3.withPackages (_: runtimePackages);
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "joinmarket";
|
|
inherit version src;
|
|
|
|
buildInputs = [ pythonEnv ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
|
|
# add-utxo.py -> bin/jm-add-utxo
|
|
cpBin() {
|
|
cp scripts/$1 $out/bin/jm-''${1%.py}
|
|
}
|
|
|
|
cp scripts/joinmarketd.py $out/bin/joinmarketd
|
|
cp scripts/obwatch/ob-watcher.py $out/bin/ob-watcher
|
|
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
|
|
|
|
# These files must be placed in the same dir as ob-watcher
|
|
cp scripts/obwatch/orderbook.html $out/bin/orderbook.html
|
|
cp -r scripts/obwatch/vendor $out/bin/vendor
|
|
'';
|
|
}
|