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
|
|
|
|
, wrapQtAppsHook ? null, qttools, qmake ? null, qrencode
|
|
|
|
, withGui, withUpnp ? true, withUtils ? true, withWallet ? true
|
|
|
|
, withZmq ? true, zeromq, util-linux ? null, Cocoa ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "dogecoin" + 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
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
preConfigure = optionalString withGui ''
|
|
|
|
export LRELEASE=${getDev qttools}/bin/lrelease
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
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;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|