Skip to content

Commit

Permalink
Merge pull request #194112 from prusnak/electrum
Browse files Browse the repository at this point in the history
electrum: make compatible with protobuf 4+
  • Loading branch information
prusnak authored Oct 4, 2022
2 parents bd47235 + e2a2284 commit 01c6a05
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 01c6a05

Please sign in to comment.