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
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-30 01:31:15 +01:00
|
|
|
pname = "namecoin" + lib.optionalString (!withGui) "d";
|
2023-01-10 11:25:48 +00:00
|
|
|
version = "24.0";
|
2014-11-30 13:13:47 +00:00
|
|
|
|
2017-09-11 20:13:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "namecoin";
|
|
|
|
repo = "namecoin-core";
|
2022-04-30 01:31:15 +01:00
|
|
|
rev = "nc${version}";
|
2023-01-10 11:25:48 +00:00
|
|
|
sha256 = "sha256-DSUYqNHgPsHVwx3G83pZdzsTjhX2X2mMqt+lAlIuGp0=";
|
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
|
2022-04-30 01:31:15 +01:00
|
|
|
] ++ lib.optionals withGui [
|
2017-09-11 20:13:46 +01:00
|
|
|
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
|
|
|
|
2022-04-30 01:31:15 +01:00
|
|
|
meta = with lib; {
|
2017-09-11 20:13:46 +01: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 20:13:46 +01:00
|
|
|
license = licenses.mit;
|
2023-01-10 13:41:03 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-11 20:13:46 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2014-11-30 13:13:47 +00:00
|
|
|
}
|