2018-08-10 13:57:43 +01:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, libqrencode, hexdump
|
2017-09-11 20:13:46 +01:00
|
|
|
, withGui }:
|
2014-11-30 13:13:47 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-08 17:42:23 +00:00
|
|
|
version = "nc0.15.99-name-tab-beta2";
|
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;
|
2018-03-08 17:42:23 +00:00
|
|
|
sha256 = "1r0v0yvlazmidxp6xhapbdawqb8fhzrdp11d4an5vgxa208s6wdf";
|
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
|
|
|
|
libqrencode
|
|
|
|
];
|
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";
|
|
|
|
homepage = https://namecoin.org;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doublec AndersonTorres infinisil ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-30 13:13:47 +00:00
|
|
|
}
|