2022-04-03 18:54:34 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, wrapGAppsHook
|
|
|
|
, dbus
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libXcursor
|
|
|
|
, libXi
|
|
|
|
, libXrandr
|
|
|
|
, udev
|
|
|
|
, unzip
|
2023-10-09 19:29:22 +00:00
|
|
|
, alsa-lib
|
2022-04-03 18:54:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cryptowatch-desktop";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.7.1";
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://cryptowat.ch/desktop/download/linux/${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-ccyHfjp00CgQH+3SiDWx9yE1skOj0RWxnBomHWY/IaU=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
unpackPhase = "unzip $src";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
udev
|
2023-10-09 19:29:22 +00:00
|
|
|
alsa-lib
|
2022-04-03 18:54:34 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2022-04-03 18:54:34 +00:00
|
|
|
license = licenses.unfree;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ livnev kashw2 ];
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
}
|