Merge pull request #78595 from mmahut/litecoin

litecoin: move to qt5 and add zeromq supoort
This commit is contained in:
Marek Mahut 2020-01-28 11:14:49 +01:00 committed by GitHub
commit 3acc5b4189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View file

@ -1,14 +1,16 @@
{ stdenv, fetchFromGitHub
{ stdenv, mkDerivation, fetchFromGitHub
, pkgconfig, autoreconfHook
, openssl, db48, boost, zlib, miniupnpc
, glib, protobuf, utillinux, qt4, qrencode
, glib, protobuf, utillinux, qrencode
, AppKit
, withGui ? true, libevent
, qtbase, qttools
, zeromq
}:
with stdenv.lib;
stdenv.mkDerivation rec {
mkDerivation rec {
name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version;
version = "0.17.1";
@ -21,13 +23,15 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ openssl db48 boost zlib
buildInputs = [ openssl db48 boost zlib zeromq
miniupnpc glib protobuf utillinux libevent ]
++ optionals stdenv.isDarwin [ AppKit ]
++ optionals withGui [ qt4 qrencode ];
++ optionals withGui [ qtbase qttools qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
++ optionals withGui [ "--with-gui=qt4" ];
++ optionals withGui [
"--with-gui=qt5"
"--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" ];
enableParallelBuilding = true;

View file

@ -22712,7 +22712,7 @@ in
ledger-live-desktop = callPackage ../applications/blockchains/ledger-live-desktop { };
litecoin = callPackage ../applications/blockchains/litecoin.nix {
litecoin = libsForQt5.callPackage ../applications/blockchains/litecoin.nix {
inherit (darwin.apple_sdk.frameworks) AppKit;
};
litecoind = litecoin.override { withGui = false; };