depot/third_party/nixpkgs/pkgs/applications/misc/qtbitcointrader/default.nix
Default email 893b09d324 Project import generated by Copybara.
GitOrigin-RevId: eac07edbd20ed4908b98790ba299250b5527ecdf
2021-12-24 12:21:11 +08:00

34 lines
831 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";
homepage = "https://centrabit.com/";
license = licenses.gpl3;
platforms = qt5.qtbase.meta.platforms;
};
}