forked from mirrors/nixpkgs
cryptowatch-desktop: init at 0.5.0
This commit is contained in:
parent
484bf4b741
commit
549a1bf9eb
57
pkgs/applications/finance/cryptowatch/default.nix
Normal file
57
pkgs/applications/finance/cryptowatch/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ 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;
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ livnev ];
|
||||
};
|
||||
}
|
|
@ -335,6 +335,8 @@ with pkgs;
|
|||
|
||||
crow-translate = libsForQt5.callPackage ../applications/misc/crow-translate { };
|
||||
|
||||
cryptowatch-desktop = callPackage ../applications/finance/cryptowatch { };
|
||||
|
||||
dhallDirectoryToNix = callPackage ../build-support/dhall/directory-to-nix.nix { };
|
||||
|
||||
dhallPackageToNix = callPackage ../build-support/dhall/package-to-nix.nix { };
|
||||
|
|
Loading…
Reference in a new issue