joinmarket: use installPhase

This simplifies the build.
This commit is contained in:
Erik Arvstedt 2021-01-01 13:57:35 +01:00
parent c6c14889eb
commit 254246cf39
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 5 additions and 5 deletions

View File

@ -22,15 +22,15 @@ stdenv.mkDerivation {
buildInputs = [ pythonEnv ];
buildCommand = ''
mkdir -p $src-unpacked $out/bin
tar xzf $src --strip 1 -C $src-unpacked
installPhase = ''
mkdir -p $out/bin
# add-utxo.py -> bin/jm-add-utxo
cpBin() {
cp $src-unpacked/scripts/$1 $out/bin/jm-''${1%.py}
cp scripts/$1 $out/bin/jm-''${1%.py}
}
cp $src-unpacked/scripts/joinmarketd.py $out/bin/joinmarketd
cp scripts/joinmarketd.py $out/bin/joinmarketd
cpBin add-utxo.py
cpBin convert_old_wallet.py
cpBin receive-payjoin.py