2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, libqrencode
|
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
|
|
|
|
];
|
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
|
|
|
|
libqrencode
|
|
|
|
];
|
2014-11-30 14:13:47 +01:00
|
|
|
|
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
|
|
|
}
|