2015-05-15 19:57:41 +01:00
|
|
|
{ fetchzip, stdenv, pkgconfig
|
2014-11-30 13:13:47 +00:00
|
|
|
, openssl, db48, boost, zlib, miniupnpc, qt4, qrencode, glib, protobuf
|
|
|
|
, utillinux
|
|
|
|
, withGui }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "darkcoin" + (toString (optional (!withGui) "d")) + "-" + version;
|
2015-01-01 20:23:02 +00:00
|
|
|
version = "0.10.99.99";
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2015-05-15 19:57:41 +01:00
|
|
|
src = fetchzip {
|
2014-11-30 13:13:47 +00:00
|
|
|
url = "https://github.com/darkcoin/darkcoin/archive/v${version}.tar.gz";
|
2015-05-15 19:57:41 +01:00
|
|
|
sha256 = "0sigvimqwc1mvaq43a8c2aq7fjla2ncafrals08qfq3jd6in8b4f";
|
2014-11-30 13:13:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig glib openssl db48 boost zlib miniupnpc ]
|
|
|
|
++ optionals withGui [ qt4 qrencode ];
|
|
|
|
|
|
|
|
configurePhase = optional withGui "qmake";
|
|
|
|
|
|
|
|
preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile";
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
if withGui
|
|
|
|
then "install -D darkcoin-qt $out/bin/darkcoin-qt"
|
|
|
|
else "install -D darkcoind $out/bin/darkcoind";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A decentralized key/value registration and transfer system";
|
|
|
|
longDescription = ''
|
|
|
|
Darkcoin (DRK) is an open sourced, privacy-centric digital
|
|
|
|
currency. It allows you keep your finances private as you make
|
|
|
|
transactions, similar to cash.
|
|
|
|
'';
|
|
|
|
homepage = http://darkcoin.io;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|