2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkg-config, qt4, protobuf, qrencode, hexdump
|
2020-04-24 23:36:52 +00:00
|
|
|
, withGui }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "namecoin" + lib.optionalString (!withGui) "d";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "25.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "namecoin";
|
|
|
|
repo = "namecoin-core";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "nc${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-2KMK5Vb8osuaKbzI1aaPSYg+te+v9CEcGUkrVI6Fk54=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
hexdump
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
boost
|
|
|
|
libevent
|
|
|
|
db4
|
|
|
|
miniupnpc
|
|
|
|
eject
|
2022-04-27 09:35:20 +00:00
|
|
|
] ++ lib.optionals withGui [
|
2020-04-24 23:36:52 +00:00
|
|
|
qt4
|
|
|
|
protobuf
|
|
|
|
qrencode
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-boost-libdir=${boost.out}/lib"
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Decentralized open source information registration and transfer system based on the Bitcoin cryptocurrency";
|
|
|
|
homepage = "https://namecoin.org";
|
|
|
|
license = licenses.mit;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|