dogecoin: cleanup and fix darwin build
This commit is contained in:
parent
ea41441023
commit
c2472d03bc
2 changed files with 30 additions and 12 deletions
|
@ -1,8 +1,10 @@
|
|||
{ lib, stdenv , fetchFromGitHub
|
||||
, pkg-config, autoreconfHook
|
||||
, db5, openssl, boost, zlib, miniupnpc, libevent
|
||||
, protobuf, util-linux, qt4, qrencode
|
||||
, withGui }:
|
||||
, protobuf, qtbase ? null
|
||||
, wrapQtAppsHook ? null, qttools, qmake ? null, qrencode
|
||||
, withGui, withUpnp ? true, withUtils ? true, withWallet ? true
|
||||
, withZmq ? true, zeromq, util-linux ? null, Cocoa ? null }:
|
||||
|
||||
with lib;
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -16,14 +18,30 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-Ewefy6sptSQDJVbvQqFoawhA/ujKEn9W2JWyoPYD7d0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||
buildInputs = [ openssl db5 openssl util-linux
|
||||
protobuf boost zlib miniupnpc libevent ]
|
||||
++ optionals withGui [ qt4 qrencode ];
|
||||
preConfigure = optionalString withGui ''
|
||||
export LRELEASE=${getDev qttools}/bin/lrelease
|
||||
'';
|
||||
|
||||
configureFlags = [ "--with-incompatible-bdb"
|
||||
"--with-boost-libdir=${boost.out}/lib" ]
|
||||
++ optionals withGui [ "--with-gui" ];
|
||||
nativeBuildInputs = [ pkg-config autoreconfHook util-linux ]
|
||||
++ optionals withGui [ wrapQtAppsHook qttools ];
|
||||
|
||||
buildInputs = [ openssl protobuf boost zlib libevent ]
|
||||
++ optionals withGui [ qtbase qrencode ]
|
||||
++ optionals withUpnp [ miniupnpc ]
|
||||
++ optionals withWallet [ db5 ]
|
||||
++ optionals withZmq [ zeromq ]
|
||||
++ optionals stdenv.isDarwin [ Cocoa ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-incompatible-bdb"
|
||||
"--with-boost-libdir=${boost.out}/lib"
|
||||
] ++ optionals (!withGui) [ "--with-gui=no" ]
|
||||
++ optionals (!withUpnp) [ "--without-miniupnpc" ]
|
||||
++ optionals (!withUtils) [ "--without-utils" ]
|
||||
++ optionals (!withWallet) [ "--disable-wallet" ]
|
||||
++ optionals (!withZmq) [ "--disable-zmq" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "Wow, such coin, much shiba, very rich";
|
||||
|
@ -33,9 +51,9 @@ stdenv.mkDerivation rec {
|
|||
internet currency."
|
||||
It is named after a famous Internet meme, the "Doge" - a Shiba Inu dog.
|
||||
'';
|
||||
homepage = "http://www.dogecoin.com/";
|
||||
homepage = "https://www.dogecoin.com/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ edwtjo offline ];
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31911,7 +31911,7 @@ with pkgs;
|
|||
boost = boost170;
|
||||
};
|
||||
|
||||
dogecoin = callPackage ../applications/blockchains/dogecoin {
|
||||
dogecoin = libsForQt5.callPackage ../applications/blockchains/dogecoin {
|
||||
boost = boost165;
|
||||
withGui = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue