Skip to content

Commit

Permalink
electrum: make compatible with protobuf 4+
Browse files Browse the repository at this point in the history
  • Loading branch information
prusnak committed Oct 2, 2022
1 parent 7f2cc70 commit e2a2284
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/applications/misc/electrum/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,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/paymentrequest.proto
substituteInPlace ./electrum/ecc_fast.py \
--replace ${libsecp256k1_name} ${secp256k1}/lib/libsecp256k1${stdenv.hostPlatform.extensions.sharedLibrary}
'' + (if enableQt then ''
Expand Down

0 comments on commit e2a2284

Please sign in to comment.