Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
35 lines
868 B
Nix
35 lines
868 B
Nix
{ lib, fetchFromGitHub, qt5, mkDerivation }:
|
|
|
|
mkDerivation rec {
|
|
pname = "qtbitcointrader";
|
|
version = "1.40.43";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JulyIGHOR";
|
|
repo = "QtBitcoinTrader";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-u3+Kwn8KunYUpWCd55TQuVVfoSp8hdti93d6hk7Uqx8=";
|
|
};
|
|
|
|
buildInputs = [ qt5.qtbase qt5.qtmultimedia qt5.qtscript ];
|
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/src";
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
qmake $qmakeFlags \
|
|
PREFIX=$out \
|
|
DESKTOPDIR=$out/share/applications \
|
|
ICONDIR=$out/share/pixmaps \
|
|
QtBitcoinTrader_Desktop.pro
|
|
runHook postConfigure
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Bitcoin trading client";
|
|
mainProgram = "QtBitcoinTrader";
|
|
homepage = "https://centrabit.com/";
|
|
license = licenses.gpl3;
|
|
platforms = qt5.qtbase.meta.platforms;
|
|
};
|
|
}
|