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 {
|
2018-03-08 18:42:23 +01:00
|
|
|
version = "nc0.15.99-name-tab-beta2";
|
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;
|
2018-03-08 18:42:23 +01:00
|
|
|
sha256 = "1r0v0yvlazmidxp6xhapbdawqb8fhzrdp11d4an5vgxa208s6wdf";
|
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";
|
|
|
|
homepage = https://namecoin.org;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doublec AndersonTorres infinisil ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-30 14:13:47 +01:00
|
|
|
}
|