nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 libsForQt5,
6}:
7
8stdenv.mkDerivation (finalAttr: {
9 pname = "qtbitcointrader";
10 version = "1.42.21";
11
12 src = fetchFromGitHub {
13 owner = "JulyIGHOR";
14 repo = "QtBitcoinTrader";
15 tag = "v${finalAttr.version}";
16 hash = "sha256-u3+Kwn8KunYUpWCd55TQuVVfoSp8hdti93d6hk7Uqx8=";
17 };
18
19 nativeBuildInputs = [ libsForQt5.wrapQtAppsHook ];
20
21 buildInputs = [
22 libsForQt5.qtbase
23 libsForQt5.qtmultimedia
24 libsForQt5.qtscript
25 ];
26
27 sourceRoot = "${finalAttr.src.name}/src";
28
29 configurePhase = ''
30 runHook preConfigure
31
32 qmake $qmakeFlags \
33 PREFIX=$out \
34 DESKTOPDIR=$out/share/applications \
35 ICONDIR=$out/share/pixmaps \
36 QtBitcoinTrader_Desktop.pro
37
38 runHook postConfigure
39 '';
40
41 meta = {
42 description = "Bitcoin trading client";
43 mainProgram = "QtBitcoinTrader";
44 homepage = "https://centrabit.com/";
45 license = lib.licenses.gpl3;
46 platforms = libsForQt5.qtbase.meta.platforms;
47 };
48})