mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
binance: remove
This commit is contained in:
parent
c1d54f849f
commit
6114bc2b0a
@ -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" ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -89,6 +89,7 @@ mapAliases ({
|
|||||||
bash_5 = bash; # Added 2021-08-20
|
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
|
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
|
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
|
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-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
|
bitwig-studio2 = throw "bitwig-studio2 has been removed, you can upgrade to 'bitwig-studio'"; # Added 2023-01-03
|
||||||
|
@ -3543,10 +3543,6 @@ with pkgs;
|
|||||||
|
|
||||||
bic = callPackage ../development/interpreters/bic { };
|
bic = callPackage ../development/interpreters/bic { };
|
||||||
|
|
||||||
binance = callPackage ../applications/misc/binance {
|
|
||||||
electron = electron_13;
|
|
||||||
};
|
|
||||||
|
|
||||||
biscuit-cli = callPackage ../tools/security/biscuit-cli { };
|
biscuit-cli = callPackage ../tools/security/biscuit-cli { };
|
||||||
|
|
||||||
bitwarden = callPackage ../tools/security/bitwarden { };
|
bitwarden = callPackage ../tools/security/bitwarden { };
|
||||||
|
Loading…
Reference in New Issue
Block a user