Skip to content

Commit

Permalink
Merge pull request NixOS#78595 from mmahut/litecoin
Browse files Browse the repository at this point in the history
litecoin: move to qt5 and add zeromq supoort
  • Loading branch information
mmahut committed Jan 28, 2020
2 parents 0d34bd2 + 910c73e commit 3acc5b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions pkgs/applications/blockchains/litecoin.nix
@@ -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";
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -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; };
Expand Down

0 comments on commit 3acc5b4

Please sign in to comment.