diff options
author | Pavol Rusnak <pavol@rusnak.io> | 2022-10-02 20:35:44 +0200 |
---|---|---|
committer | Pavol Rusnak <pavol@rusnak.io> | 2022-10-02 20:39:31 +0200 |
commit | e2a22846581333e02cca7a79df758a1f2e29f631 (patch) | |
tree | a18aa07739762db05f499b48ea9a201c7b4733c1 /pkgs/applications/misc/electrum | |
parent | 7f2cc702abb55f94b87c076b23f049c7a7f6037f (diff) |
electrum: make compatible with protobuf 4+
Diffstat (limited to 'pkgs/applications/misc/electrum')
-rw-r--r-- | pkgs/applications/misc/electrum/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 46ea57c6193d3..9421cce1d8f75 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -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 '' |