From 8870a51918d3837adf419ff46c3fd5afb5beecc2 Mon Sep 17 00:00:00 2001 From: Kamillaova Date: Tue, 25 Feb 2025 14:32:26 +0300 Subject: [PATCH] haven-cli: drop The project is officially abandoned. It also had critical vulnerabilities that greatly affected the project's mainnet public ledger. Read more at https://havenprotocol.org/2024/12/12/project-closure-announcement --- .../blockchains/haven-cli/default.nix | 109 ------------------ pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 4 - 3 files changed, 1 insertion(+), 113 deletions(-) delete mode 100644 pkgs/applications/blockchains/haven-cli/default.nix diff --git a/pkgs/applications/blockchains/haven-cli/default.nix b/pkgs/applications/blockchains/haven-cli/default.nix deleted file mode 100644 index 55024aa83e44..000000000000 --- a/pkgs/applications/blockchains/haven-cli/default.nix +++ /dev/null @@ -1,109 +0,0 @@ -{ - lib, - stdenv, - fetchFromGitHub, - cmake, - ninja, - pkg-config, - boost, - miniupnpc, - openssl, - unbound, - zeromq, - pcsclite, - readline, - libsodium, - hidapi, - randomx, - rapidjson, - easyloggingpp, - CoreData, - IOKit, - PCSC, - trezorSupport ? true, - libusb1, - protobuf, - python3, - monero-cli, -}: - -stdenv.mkDerivation rec { - pname = "haven-cli"; - version = "4.2.0"; - - src = fetchFromGitHub { - owner = "haven-protocol-org"; - repo = "haven-main"; - rev = "v${version}"; - hash = "sha256-yVFAIyxeD8HNGCcWu52xNDFm9zyHrCdH2zR2+VbpBe8="; - fetchSubmodules = true; - }; - - inherit (monero-cli) patches; - - postPatch = '' - # remove vendored libraries - rm -r external/{miniupnp,randomx,rapidjson} - # export patched source for haven-gui - cp -r . $source - ''; - - nativeBuildInputs = [ - cmake - ninja - pkg-config - ]; - - buildInputs = - [ - boost - miniupnpc - openssl - unbound - zeromq - pcsclite - readline - libsodium - hidapi - randomx - rapidjson - protobuf - readline - easyloggingpp - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - IOKit - CoreData - PCSC - ] - ++ lib.optionals trezorSupport [ - libusb1 - protobuf - python3 - ]; - - cmakeFlags = - [ - "-DBUILD_GUI_DEPS=ON" - "-DReadline_ROOT_DIR=${readline.dev}" - "-DReadline_INCLUDE_DIR=${readline.dev}/include/readline" - "-DRandomX_ROOT_DIR=${randomx}" - ] - ++ lib.optional stdenv.hostPlatform.isDarwin "-DBoost_USE_MULTITHREADED=OFF" - ++ lib.optional (!trezorSupport) "-DUSE_DEVICE_TREZOR=OFF"; - - outputs = [ - "out" - "source" - ]; - - meta = with lib; { - description = "Haven Protocol is the world's only network of private stable asset"; - homepage = "https://havenprotocol.org/"; - license = licenses.bsd3; - platforms = platforms.all; - badPlatforms = [ "x86_64-darwin" ]; - maintainers = with maintainers; [ kim0 ]; - mainProgram = "haven-wallet-cli"; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index eb58e4fbd9d0..76793711ae24 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -635,6 +635,7 @@ mapAliases { ### H ### hacksaw = throw "'hacksaw' has been removed due to lack of upstream maintenance"; # Added 2025-01-25 + haven-cli = throw "'haven-cli' has been removed due to the official announcement of the project closure. Read more at https://havenprotocol.org/2024/12/12/project-closure-announcement"; # Added 2025-02-25 HentaiAtHome = hentai-at-home; # Added 2024-06-12 hll2390dw-cups = throw "The hll2390dw-cups package was dropped since it was unmaintained."; # Added 2024-06-21 hop-cli = throw "hop-cli has been removed as the service has been shut-down"; # Added 2024-08-13 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 640b52bebbee..23f234106251 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15882,10 +15882,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) CoreData IOKit; }; - haven-cli = callPackage ../applications/blockchains/haven-cli { - inherit (darwin.apple_sdk.frameworks) CoreData IOKit PCSC; - }; - monero-gui = libsForQt5.callPackage ../applications/blockchains/monero-gui { }; napari = with python3Packages; toPythonApplication napari;