pivx: cleanup, format
This commit is contained in:
parent
633a5a6af9
commit
95c29de58f
|
@ -1,38 +1,57 @@
|
||||||
{ fetchFromGitHub, lib, stdenv, pkg-config, autoreconfHook, wrapQtAppsHook ? null
|
{ fetchFromGitHub
|
||||||
, openssl, db48, boost, zlib, miniupnpc, gmp
|
, lib
|
||||||
, qrencode, glib, protobuf, yasm, libevent
|
, stdenv
|
||||||
, util-linux, qtbase ? null, qttools ? null
|
, pkg-config
|
||||||
|
, autoreconfHook
|
||||||
|
, wrapQtAppsHook
|
||||||
|
, openssl
|
||||||
|
, db48
|
||||||
|
, boost
|
||||||
|
, zlib
|
||||||
|
, miniupnpc
|
||||||
|
, gmp
|
||||||
|
, qrencode
|
||||||
|
, glib
|
||||||
|
, protobuf
|
||||||
|
, yasm
|
||||||
|
, libevent
|
||||||
|
, util-linux
|
||||||
|
, qtbase
|
||||||
|
, qttools
|
||||||
, enableUpnp ? false
|
, enableUpnp ? false
|
||||||
, disableWallet ? false
|
, disableWallet ? false
|
||||||
, disableDaemon ? false
|
, disableDaemon ? false
|
||||||
, withGui ? false }:
|
, withGui ? false
|
||||||
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pivx-${version}";
|
pname = "pivx";
|
||||||
version = "4.1.1";
|
version = "4.1.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PIVX-Project";
|
owner = "PIVX-Project";
|
||||||
repo= "PIVX";
|
repo = "PIVX";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "03ndk46h6093v8s18d5iffz48zhlshq7jrk6vgpjfs6z2iqgd2sy";
|
sha256 = "03ndk46h6093v8s18d5iffz48zhlshq7jrk6vgpjfs6z2iqgd2sy";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config autoreconfHook ] ++ optionals withGui [ wrapQtAppsHook ];
|
nativeBuildInputs = [ pkg-config autoreconfHook ]
|
||||||
|
++ lib.optionals withGui [ wrapQtAppsHook ];
|
||||||
|
|
||||||
buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf util-linux ]
|
buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf util-linux ]
|
||||||
++ optionals withGui [ qtbase qttools qrencode ];
|
++ lib.optionals withGui [ qtbase qttools qrencode ];
|
||||||
|
|
||||||
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
|
||||||
++ optional enableUpnp "--enable-upnp-default"
|
++ lib.optional enableUpnp "--enable-upnp-default"
|
||||||
++ optional disableWallet "--disable-wallet"
|
++ lib.optional disableWallet "--disable-wallet"
|
||||||
++ optional disableDaemon "--disable-daemon"
|
++ lib.optional disableDaemon "--disable-daemon"
|
||||||
++ optionals withGui [ "--with-gui=yes"
|
++ lib.optionals withGui [
|
||||||
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin"
|
"--with-gui=yes"
|
||||||
];
|
"--with-qt-bindir=${lib.getDev qtbase}/bin:${lib.getDev qttools}/bin"
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
doChecks = true;
|
doCheck = true;
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
mkdir -p $out/share/applications $out/share/icons
|
mkdir -p $out/share/applications $out/share/icons
|
||||||
cp contrib/debian/pivx-qt.desktop $out/share/applications/
|
cp contrib/debian/pivx-qt.desktop $out/share/applications/
|
||||||
|
|
|
@ -28786,6 +28786,9 @@ in
|
||||||
pivx = libsForQt5.callPackage ../applications/blockchains/pivx { withGui = true; };
|
pivx = libsForQt5.callPackage ../applications/blockchains/pivx { withGui = true; };
|
||||||
pivxd = callPackage ../applications/blockchains/pivx {
|
pivxd = callPackage ../applications/blockchains/pivx {
|
||||||
withGui = false;
|
withGui = false;
|
||||||
|
qtbase = null;
|
||||||
|
qttools = null;
|
||||||
|
wrapQtAppsHook = null;
|
||||||
autoreconfHook = buildPackages.autoreconfHook269;
|
autoreconfHook = buildPackages.autoreconfHook269;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue