depot/third_party/nixpkgs/pkgs/applications/finance/cryptowatch/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

58 lines
1.1 KiB
Nix

{ stdenv
, lib
, fetchurl
, autoPatchelfHook
, wrapGAppsHook
, dbus
, libGL
, libX11
, libXcursor
, libXi
, libXrandr
, udev
, unzip
}:
stdenv.mkDerivation rec {
pname = "cryptowatch-desktop";
version = "0.5.0";
src = fetchurl {
url = "https://cryptowat.ch/desktop/download/linux/${version}";
sha256 = "0lr5fsd0f44b1v9f2dvx0a0lmz9dyivyz5d98qx2gcv3jkngw34v";
};
unpackPhase = "unzip $src";
nativeBuildInputs = [
autoPatchelfHook
wrapGAppsHook
unzip
];
buildInputs = [
dbus
udev
];
sourceRoot = ".";
installPhase = ''
install -m755 -D cryptowatch_desktop $out/bin/cryptowatch_desktop
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL libX11 libXcursor libXrandr libXi ]}"
)
'';
meta = with lib; {
homepage = "https://cryptowat.ch";
description = "Application for visualising real-time cryptocurrency market data";
platforms = platforms.linux;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
maintainers = with maintainers; [ livnev ];
};
}