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 19:13:46 +00:00
|
|
|
, withGui }:
|
2014-11-30 13:13:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-30 00:31:15 +00:00
|
|
|
pname = "namecoin" + lib.optionalString (!withGui) "d";
|
|
|
|
version = "22.0";
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2017-09-11 19:13:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "namecoin";
|
|
|
|
repo = "namecoin-core";
|
2022-04-30 00:31:15 +00:00
|
|
|
rev = "nc${version}";
|
2022-02-12 17:17:39 +00:00
|
|
|
sha256 = "sha256-Z3CLDe0c4IpFPPTie8yoh0kcuvGmiegSgl4ITNSDkgY=";
|
2017-09-11 19:13:46 +00:00
|
|
|
};
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2017-09-11 19:13:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-08-10 12:57:43 +00:00
|
|
|
hexdump
|
2017-09-11 19:13:46 +00:00
|
|
|
];
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2017-09-11 19:13:46 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
boost
|
|
|
|
libevent
|
|
|
|
db4
|
|
|
|
miniupnpc
|
|
|
|
eject
|
2022-04-30 00:31:15 +00:00
|
|
|
] ++ lib.optionals withGui [
|
2017-09-11 19:13:46 +00:00
|
|
|
qt4
|
|
|
|
protobuf
|
2019-01-01 16:19:07 +00:00
|
|
|
qrencode
|
2017-09-11 19:13:46 +00:00
|
|
|
];
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2018-08-10 12:57:43 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-09-11 19:13:46 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
];
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2022-04-30 00:31:15 +00:00
|
|
|
meta = with lib; {
|
2017-09-11 19:13:46 +00:00
|
|
|
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 19:13:46 +00:00
|
|
|
license = licenses.mit;
|
2020-11-09 08:41:49 +00:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
2017-09-11 19:13:46 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-30 13:13:47 +00:00
|
|
|
}
|