From 6114bc2b0a9a8c626a8137df5128058fe7a4d4c6 Mon Sep 17 00:00:00 2001 From: "P. R. d. O." Date: Thu, 9 Nov 2023 11:35:34 -0600 Subject: [PATCH] binance: remove --- pkgs/applications/misc/binance/default.nix | 56 ---------------------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 4 -- 3 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 pkgs/applications/misc/binance/default.nix diff --git a/pkgs/applications/misc/binance/default.nix b/pkgs/applications/misc/binance/default.nix deleted file mode 100644 index 4d7789f033b5..000000000000 --- a/pkgs/applications/misc/binance/default.nix +++ /dev/null @@ -1,56 +0,0 @@ -{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper, electron -, alsa-lib, gtk3, libxshmfence, mesa, nss, popt }: - -stdenv.mkDerivation rec { - pname = "binance"; - version = "1.39.0"; - - src = fetchurl { - url = "https://github.com/binance/desktop/releases/download/v${version}/${pname}-${version}-amd64-linux.deb"; - sha256 = "sha256-6VQerIzX2u8QGUsa8kvu6Qud3OEn9lrZkQddfkZ1X0g="; - }; - - nativeBuildInputs = [ - dpkg - autoPatchelfHook - makeWrapper - ]; - - buildInputs = [ alsa-lib gtk3 libxshmfence mesa nss popt ]; - - libPath = lib.makeLibraryPath buildInputs; - - dontBuild = true; - dontConfigure = true; - - unpackPhase = '' - dpkg-deb -x ${src} ./ - ''; - - installPhase = '' - runHook preInstall - - mv usr $out - mv opt $out - - runHook postInstall - ''; - - postFixup = '' - substituteInPlace $out/share/applications/binance.desktop --replace '/opt/Binance' $out/bin - - makeWrapper ${electron}/bin/electron \ - $out/bin/binance \ - --add-flags $out/opt/Binance/resources/app.asar \ - --prefix LD_LIBRARY_PATH : ${libPath} - ''; - - meta = with lib; { - description = "Binance Cryptoexchange Official Desktop Client"; - homepage = "https://www.binance.com/en/desktop-download"; - sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - license = licenses.unfree; - maintainers = with maintainers; [ wolfangaukang ]; - platforms = [ "x86_64-linux" ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 1a7bc5b7c4d9..5807d28337f6 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -89,6 +89,7 @@ mapAliases ({ bash_5 = bash; # Added 2021-08-20 bazel_3 = throw "bazel 3 is past end of life as it is not an lts version"; # Added 2023-02-02 bedup = throw "bedup was removed because it was broken and abandoned upstream"; # added 2023-02-04 + binance = throw "binance has been removed, because it depends on a very outdated and insecure version of electron"; # Added 2023-11-09 bird2 = bird; # Added 2022-02-21 bitwig-studio1 = throw "bitwig-studio1 has been removed, you can upgrade to 'bitwig-studio'"; # Added 2023-01-03 bitwig-studio2 = throw "bitwig-studio2 has been removed, you can upgrade to 'bitwig-studio'"; # Added 2023-01-03 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 67b62f9e2e1f..83675214e552 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3543,10 +3543,6 @@ with pkgs; bic = callPackage ../development/interpreters/bic { }; - binance = callPackage ../applications/misc/binance { - electron = electron_13; - }; - biscuit-cli = callPackage ../tools/security/biscuit-cli { }; bitwarden = callPackage ../tools/security/bitwarden { };