From cf5d8bd81d871d8a6daf2da62bd11cced11c1520 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 18 Nov 2024 22:19:39 +0100 Subject: [PATCH] electron-cash: remove --- pkgs/by-name/el/electron-cash/package.nix | 112 ---------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 112 deletions(-) delete mode 100644 pkgs/by-name/el/electron-cash/package.nix diff --git a/pkgs/by-name/el/electron-cash/package.nix b/pkgs/by-name/el/electron-cash/package.nix deleted file mode 100644 index ff2b24cdc7e0..000000000000 --- a/pkgs/by-name/el/electron-cash/package.nix +++ /dev/null @@ -1,112 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - python3Packages, - qt5, - secp256k1, -}: - -python3Packages.buildPythonApplication rec { - pname = "electron-cash"; - version = "4.4.2"; - - src = fetchFromGitHub { - owner = "Electron-Cash"; - repo = "Electron-Cash"; - tag = version; - sha256 = "sha256-hqaPxetS6JONvlRMjNonXUGFpdmnuadD00gcPzY07x0="; - }; - - build-system = with python3Packages; [ - cython - ]; - - propagatedBuildInputs = with python3Packages; [ - # requirements - pyaes - ecdsa - requests - qrcode - protobuf - jsonrpclib-pelix - pysocks - qdarkstyle - python-dateutil - stem - certifi - pathvalidate - dnspython - bitcoinrpc - - # requirements-binaries - pyqt5 - psutil - pycryptodomex - cryptography - zxing-cpp - - # requirements-hw - trezor - keepkey - btchip-python - hidapi - pyopenssl - pyscard - pysatochip - ]; - - nativeBuildInputs = [ qt5.wrapQtAppsHook ]; - - buildInputs = [ ] ++ lib.optional stdenv.hostPlatform.isLinux qt5.qtwayland; - - # If secp256k1 wasn't added to the library path, the following warning is given: - # - # Electron Cash was unable to find the secp256k1 library on this system. - # Elliptic curve cryptography operations will be performed in slow - # Python-only mode. - # - # Upstream hardcoded `libsecp256k1.so.0` where we provides - # `libsecp256k1.so.5`. The only breaking change is the removal of two - # functions which seem not used by electron-cash. - # See: - postPatch = '' - substituteInPlace setup.py \ - --replace-fail "(share_dir" '("share"' - substituteInPlace electroncash/secp256k1.py \ - --replace-fail "libsecp256k1.so.0" "${secp256k1}/lib/libsecp256k1.so.5" - ''; - - preFixup = '' - makeWrapperArgs+=("''${qtWrapperArgs[@]}") - ''; - - doInstallCheck = true; - installCheckPhase = '' - output="$($out/bin/electron-cash help 2>&1)" - if [[ "$output" == *"failed to load"* ]]; then - echo "$output" - echo "Forbidden text detected: failed to load" - exit 1 - fi - ''; - - meta = { - description = "Bitcoin Cash SPV Wallet"; - mainProgram = "electron-cash"; - longDescription = '' - An easy-to-use Bitcoin Cash client featuring wallets generated from - mnemonic seeds (in addition to other, more advanced, wallet options) - and the ability to perform transactions without downloading a copy - of the blockchain. - ''; - homepage = "https://www.electroncash.org/"; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ - lassulus - nyanloutre - oxalica - ]; - license = lib.licenses.mit; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 8f7e5b0cd269..3af1bad9de3e 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -593,6 +593,7 @@ mapAliases { eidolon = throw "eidolon was removed as it is unmaintained upstream."; # Added 2025-05-28 eintopf = lauti; # Project was renamed, added 2025-05-01 elasticsearch7Plugins = elasticsearchPlugins; + electron-cash = throw "'electron-cash' has been removed due to lack of maintenance."; # Added 2025-06-17 electronplayer = throw "'electronplayer' has been removed as it had been discontinued upstream since October 2024"; # Added 2024-12-17 element-desktop-wayland = throw "element-desktop-wayland has been removed. Consider setting NIXOS_OZONE_WL=1 via 'environment.sessionVariables' instead"; # Added 2024-12-17