electrum-grs: move to electrum/grs

This commit is contained in:
Pavol Rusnak 2022-12-26 15:12:33 +01:00
parent a09b4ff7f8
commit 7c1eeef919
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
2 changed files with 11 additions and 2 deletions

View file

@ -63,7 +63,13 @@ python3.pkgs.buildPythonApplication {
qdarkstyle
];
preBuild = ''
postPatch = ''
# make compatible with protobuf4 by easing dependencies ...
substituteInPlace ./contrib/requirements/requirements.txt \
--replace "protobuf>=3.12,<4" "protobuf>=3.12"
# ... and regenerating the paymentrequest_pb2.py file
protoc --python_out=. electrum_grs/paymentrequest.proto
substituteInPlace ./electrum_grs/ecc_fast.py \
--replace ${libsecp256k1_name} ${secp256k1}/lib/libsecp256k1${stdenv.hostPlatform.extensions.sharedLibrary}
'' + (if enableQt then ''
@ -85,6 +91,9 @@ python3.pkgs.buildPythonApplication {
wrapQtApp $out/bin/electrum-grs
'';
# the tests are currently broken
doCheck = false;
postCheck = ''
$out/bin/electrum-grs help >/dev/null
'';

View file

@ -28440,7 +28440,7 @@ with pkgs;
electrum = libsForQt5.callPackage ../applications/misc/electrum { };
electrum-grs = libsForQt5.callPackage ../applications/misc/electrum-grs { };
electrum-grs = libsForQt5.callPackage ../applications/misc/electrum/grs.nix { };
electrum-ltc = libsForQt5.callPackage ../applications/misc/electrum/ltc.nix { };