2019-01-01 17:19:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, qrencode, hexdump
|
2017-09-11 21:13:46 +02:00
|
|
|
, withGui }:
|
2014-11-30 14:13:47 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2020-06-15 01:00:23 +02:00
|
|
|
version = "nc0.20.0";
|
2017-09-11 21:13:46 +02:00
|
|
|
name = "namecoin" + toString (optional (!withGui) "d") + "-" + version;
|
2014-11-30 14:13:47 +01:00
|
|
|
|
2017-09-11 21:13:46 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "namecoin";
|
|
|
|
repo = "namecoin-core";
|
|
|
|
rev = version;
|
2020-06-15 01:00:23 +02:00
|
|
|
sha256 = "115nlsq5g169mj4qjmkhxx1bnx740871zqyng9zbm2y4i0xf71c4";
|
2017-09-11 21:13:46 +02:00
|
|
|
};
|
2014-11-30 14:13:47 +01:00
|
|
|
|
2017-09-11 21:13:46 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkgconfig
|
2018-08-10 14:57:43 +02:00
|
|
|
hexdump
|
2017-09-11 21:13:46 +02:00
|
|
|
];
|
2014-11-30 14:13:47 +01:00
|
|
|
|
2017-09-11 21:13:46 +02:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
boost
|
|
|
|
libevent
|
|
|
|
db4
|
|
|
|
miniupnpc
|
|
|
|
eject
|
|
|
|
] ++ optionals withGui [
|
|
|
|
qt4
|
|
|
|
protobuf
|
2019-01-01 17:19:07 +01:00
|
|
|
qrencode
|
2017-09-11 21:13:46 +02:00
|
|
|
];
|
2014-11-30 14:13:47 +01:00
|
|
|
|
2018-08-10 14:57:43 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-11 21:13:46 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
];
|
2014-11-30 14:13:47 +01:00
|
|
|
|
2017-09-11 21:13:46 +02:00
|
|
|
meta = {
|
|
|
|
description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
|
2020-03-14 11:13:29 +01:00
|
|
|
homepage = "https://namecoin.org";
|
2017-09-11 21:13:46 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doublec AndersonTorres infinisil ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-30 14:13:47 +01:00
|
|
|
}
|