2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv , fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config, autoreconfHook
|
2019-08-20 22:04:20 +01:00
|
|
|
, db5, openssl, boost, zlib, miniupnpc, libevent
|
2020-11-24 15:29:28 +00:00
|
|
|
, protobuf, util-linux, qt4, qrencode
|
2019-08-21 13:52:07 +01:00
|
|
|
, withGui }:
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2014-11-30 13:13:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dogecoin" + (toString (optional (!withGui) "d")) + "-" + version;
|
2019-11-25 21:00:47 +00:00
|
|
|
version = "1.14.2";
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2017-03-07 02:49:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dogecoin";
|
|
|
|
repo = "dogecoin";
|
|
|
|
rev = "v${version}";
|
2019-11-25 21:00:47 +00:00
|
|
|
sha256 = "1gw46q63mjzwvb17ck6p1bap2xpdrap08szw2kjhasa3yvd5swyy";
|
2014-11-30 13:13:47 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2020-11-24 15:29:28 +00:00
|
|
|
buildInputs = [ openssl db5 openssl util-linux
|
2019-08-05 13:37:40 +01:00
|
|
|
protobuf boost zlib miniupnpc libevent ]
|
2014-11-30 13:13:47 +00:00
|
|
|
++ optionals withGui [ qt4 qrencode ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-incompatible-bdb"
|
2016-04-27 22:41:28 +01:00
|
|
|
"--with-boost-libdir=${boost.out}/lib" ]
|
2014-11-30 13:13:47 +00:00
|
|
|
++ optionals withGui [ "--with-gui" ];
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.dogecoin.com/";
|
2014-11-30 13:13:47 +00:00
|
|
|
license = licenses.mit;
|
2020-09-22 07:24:36 +01:00
|
|
|
maintainers = with maintainers; [ edwtjo offline ];
|
2017-03-07 02:49:01 +00:00
|
|
|
platforms = platforms.linux;
|
2014-11-30 13:13:47 +00:00
|
|
|
};
|
|
|
|
}
|