2017-03-07 02:49:01 +00:00
|
|
|
{ stdenv , fetchFromGitHub
|
2014-11-30 13:13:47 +00:00
|
|
|
, pkgconfig, autoreconfHook
|
|
|
|
, db5, openssl, boost, zlib, miniupnpc
|
2018-07-21 01:44:44 +01:00
|
|
|
, protobuf, utillinux, qt4, qrencode
|
2014-11-30 13:13:47 +00:00
|
|
|
, withGui }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dogecoin" + (toString (optional (!withGui) "d")) + "-" + version;
|
2017-03-07 02:49:01 +00:00
|
|
|
version = "1.10.0";
|
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}";
|
2017-11-02 14:14:26 +00:00
|
|
|
sha256 = "04rddx20d4fps2w3h1jxa2j8iyqpjv2fh897z0z3r06qjvjzf7rr";
|
2014-11-30 13:13:47 +00:00
|
|
|
};
|
|
|
|
|
2017-03-07 02:49:01 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
2017-11-02 14:14:26 +00:00
|
|
|
buildInputs = [ openssl db5 openssl utillinux
|
2017-03-07 02:49:01 +00:00
|
|
|
protobuf boost zlib miniupnpc ]
|
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.
|
|
|
|
'';
|
|
|
|
homepage = http://www.dogecoin.com/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ edwtjo offline AndersonTorres ];
|
2017-03-07 02:49:01 +00:00
|
|
|
platforms = platforms.linux;
|
2014-11-30 13:13:47 +00:00
|
|
|
};
|
|
|
|
}
|