2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkg-config, qt4, protobuf, qrencode, hexdump
|
2017-09-11 20:13:46 +01:00
|
|
|
, withGui }:
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2014-11-30 13:13:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-08-11 09:04:00 +01:00
|
|
|
version = "nc0.20.1";
|
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-08-11 09:04:00 +01:00
|
|
|
sha256 = "1wpfp9y95lmfg2nk1xqzchwck1wk6gwkya1rj07mf5in9jngxk9z";
|
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
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
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;
|
2020-11-09 08:41:49 +00:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
2017-09-11 20:13:46 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-30 13:13:47 +00:00
|
|
|
}
|