2021-08-18 13:19:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, darwin
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake, pkg-config
|
|
|
|
, asio, nettle, gnutls, msgpack, readline, libargon2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opendht";
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savoirfairelinux";
|
|
|
|
repo = "opendht";
|
|
|
|
rev = version;
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-u4MWMUbnq2q4FH0TMpbrbhS5erAfT4/3HYGLXaLTz+I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs =
|
|
|
|
[ cmake
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ asio
|
|
|
|
nettle
|
|
|
|
gnutls
|
|
|
|
msgpack
|
|
|
|
readline
|
|
|
|
libargon2
|
2021-08-18 13:19:15 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A C++11 Kademlia distributed hash table implementation";
|
|
|
|
homepage = "https://github.com/savoirfairelinux/opendht";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ taeer olynch thoughtpolice ];
|
2021-08-18 13:19:15 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|