From 85f08cc5e7d0b6d62885110f79d2a3e3b58561d2 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 26 Dec 2022 15:14:26 +0100 Subject: [PATCH 1/4] electrum: fix description --- pkgs/applications/misc/electrum/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/electrum/default.nix b/pkgs/applications/misc/electrum/default.nix index 9421cce1d8f7..bab227aee779 100644 --- a/pkgs/applications/misc/electrum/default.nix +++ b/pkgs/applications/misc/electrum/default.nix @@ -141,7 +141,7 @@ python3.pkgs.buildPythonApplication { }; meta = with lib; { - description = "A lightweight Bitcoin wallet"; + description = "Lightweight Bitcoin wallet"; longDescription = '' An easy-to-use Bitcoin client featuring wallets generated from mnemonic seeds (in addition to other, more advanced, wallet options) From 4d7160e615dce09555fa578bddc49710a5766ccc Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 26 Dec 2022 15:13:37 +0100 Subject: [PATCH 2/4] electrum-ltc: remove passthru.updateScript (which is meant to be used by electrum, not electrum-ltc) --- pkgs/applications/misc/electrum/ltc.nix | 26 +------------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/pkgs/applications/misc/electrum/ltc.nix b/pkgs/applications/misc/electrum/ltc.nix index c9332be23094..5029581ac85d 100644 --- a/pkgs/applications/misc/electrum/ltc.nix +++ b/pkgs/applications/misc/electrum/ltc.nix @@ -7,16 +7,6 @@ , zbar , secp256k1 , enableQt ? true -# for updater.nix -, writeScript -, common-updater-scripts -, bash -, coreutils -, curl -, gnugrep -, gnupg -, gnused -, nix }: let @@ -29,6 +19,7 @@ let libzbar_name = if stdenv.isLinux then "libzbar.so.0" + else if stdenv.isDarwin then "libzbar.0.dylib" else "libzbar${stdenv.hostPlatform.extensions.sharedLibrary}"; # Not provided in official source releases, which are what upstream signs. @@ -131,21 +122,6 @@ python3.pkgs.buildPythonApplication { $out/bin/electrum-ltc help >/dev/null ''; - passthru.updateScript = import ./update.nix { - inherit lib; - inherit - writeScript - common-updater-scripts - bash - coreutils - curl - gnupg - gnugrep - gnused - nix - ; - }; - meta = with lib; { description = "Lightweight Litecoin Client"; longDescription = '' From a09b4ff7f82b55cb78bc43610e0e3955973a8c02 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 26 Dec 2022 15:11:35 +0100 Subject: [PATCH 3/4] python3Packages.groestlcoin_hash: change license to MIT --- pkgs/development/python-modules/groestlcoin_hash/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/groestlcoin_hash/default.nix b/pkgs/development/python-modules/groestlcoin_hash/default.nix index 859573d1ca53..477ff19e33ab 100644 --- a/pkgs/development/python-modules/groestlcoin_hash/default.nix +++ b/pkgs/development/python-modules/groestlcoin_hash/default.nix @@ -21,6 +21,6 @@ buildPythonPackage rec { description = "Bindings for groestl key derivation function library used in Groestlcoin"; homepage = "https://pypi.org/project/groestlcoin_hash/"; maintainers = with maintainers; [ gruve-p ]; - license = licenses.unfree; + license = licenses.mit; }; } From 7c1eeef919affdd564a01ef0631891d5428eb8f2 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 26 Dec 2022 15:12:33 +0100 Subject: [PATCH 4/4] electrum-grs: move to electrum/grs --- .../{electrum-grs/default.nix => electrum/grs.nix} | 11 ++++++++++- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) rename pkgs/applications/misc/{electrum-grs/default.nix => electrum/grs.nix} (88%) diff --git a/pkgs/applications/misc/electrum-grs/default.nix b/pkgs/applications/misc/electrum/grs.nix similarity index 88% rename from pkgs/applications/misc/electrum-grs/default.nix rename to pkgs/applications/misc/electrum/grs.nix index e07e337477ae..a4166a3fe641 100644 --- a/pkgs/applications/misc/electrum-grs/default.nix +++ b/pkgs/applications/misc/electrum/grs.nix @@ -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 ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 271505dac835..bec0ec34351a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };