2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv , fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, db5, openssl, boost, zlib, miniupnpc, libevent
|
2022-08-12 12:06:08 +00:00
|
|
|
, protobuf, qtbase ? null
|
2022-12-02 08:20:57 +00:00
|
|
|
, wrapQtAppsHook ? null, qttools ? null, qmake ? null, qrencode
|
2022-08-12 12:06:08 +00:00
|
|
|
, withGui, withUpnp ? true, withUtils ? true, withWallet ? true
|
|
|
|
, withZmq ? true, zeromq, util-linux ? null, Cocoa ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "dogecoin" + lib.optionalString (!withGui) "d";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.14.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dogecoin";
|
|
|
|
repo = "dogecoin";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-PmbmmA2Mq07dwB3cI7A9c/ewtu0I+sWvQT39Yekm/sU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
preConfigure = lib.optionalString withGui ''
|
|
|
|
export LRELEASE=${lib.getDev qttools}/bin/lrelease
|
2022-08-12 12:06:08 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook util-linux ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optionals withGui [ wrapQtAppsHook qttools ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl protobuf boost zlib libevent ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optionals withGui [ qtbase qrencode ]
|
|
|
|
++ lib.optionals withUpnp [ miniupnpc ]
|
|
|
|
++ lib.optionals withWallet [ db5 ]
|
|
|
|
++ lib.optionals withZmq [ zeromq ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Cocoa ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-incompatible-bdb"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
2023-02-02 18:25:31 +00:00
|
|
|
] ++ lib.optionals (!withGui) [ "--with-gui=no" ]
|
|
|
|
++ lib.optionals (!withUpnp) [ "--without-miniupnpc" ]
|
|
|
|
++ lib.optionals (!withUtils) [ "--without-utils" ]
|
|
|
|
++ lib.optionals (!withWallet) [ "--disable-wallet" ]
|
|
|
|
++ lib.optionals (!withZmq) [ "--disable-zmq" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Wow, such coin, much shiba, very rich";
|
|
|
|
longDescription = ''
|
|
|
|
Dogecoin is a decentralized, peer-to-peer digital currency that
|
|
|
|
enables you to easily send money online. Think of it as "the
|
|
|
|
internet currency."
|
|
|
|
It is named after a famous Internet meme, the "Doge" - a Shiba Inu dog.
|
|
|
|
'';
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://www.dogecoin.com/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo offline ];
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|