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