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
|
2020-11-24 20:58:05 +00:00
|
|
|
, protobuf, util-linux, qt4, qrencode
|
2020-04-24 23:36:52 +00:00
|
|
|
, withGui }:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dogecoin" + (toString (optional (!withGui) "d")) + "-" + version;
|
2021-10-11 16:52:03 +00:00
|
|
|
version = "1.14.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dogecoin";
|
|
|
|
repo = "dogecoin";
|
|
|
|
rev = "v${version}";
|
2021-10-11 16:52:03 +00:00
|
|
|
sha256 = "sha256-uITX5DSyC/m0ynwCkkbGgUj8kMuNgnsNo8H8RQSGPEA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2020-11-24 20:58:05 +00:00
|
|
|
buildInputs = [ openssl db5 openssl util-linux
|
2020-04-24 23:36:52 +00:00
|
|
|
protobuf boost zlib miniupnpc libevent ]
|
|
|
|
++ optionals withGui [ qt4 qrencode ];
|
|
|
|
|
|
|
|
configureFlags = [ "--with-incompatible-bdb"
|
|
|
|
"--with-boost-libdir=${boost.out}/lib" ]
|
|
|
|
++ 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.
|
|
|
|
'';
|
|
|
|
homepage = "http://www.dogecoin.com/";
|
|
|
|
license = licenses.mit;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo offline ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|