3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/opendht/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.3 KiB
Nix
Raw Normal View History

2021-10-08 15:18:30 +01:00
{ lib
, stdenv
, fetchFromGitHub
, Security
, cmake
, pkg-config
, asio
, nettle
, gnutls
, msgpack
, readline
, libargon2
, jsoncpp
, restinio
, http-parser
, openssl
, fmt
, enableProxyServerAndClient ? false
, enablePushNotifications ? false
2017-07-11 18:00:07 +01:00
}:
stdenv.mkDerivation rec {
pname = "opendht";
2022-03-12 17:27:07 +00:00
version = "2.3.5";
2017-07-11 18:00:07 +01:00
src = fetchFromGitHub {
owner = "savoirfairelinux";
repo = "opendht";
2019-09-09 00:38:31 +01:00
rev = version;
2022-03-12 17:27:07 +00:00
sha256 = "sha256-GGaq8ziOCUDMxILq2QYUkSP4usBjbufbHwQF4Pr6hHw=";
2017-07-11 18:00:07 +01:00
};
2021-10-08 15:18:30 +01:00
nativeBuildInputs = [
cmake
pkg-config
];
2017-07-11 18:00:07 +01:00
2021-10-08 15:18:30 +01:00
buildInputs = [
asio
nettle
gnutls
msgpack
readline
libargon2
] ++ lib.optionals enableProxyServerAndClient [
jsoncpp
restinio
http-parser
openssl
fmt
] ++ lib.optionals stdenv.isDarwin [
Security
];
cmakeFlags = lib.optionals enableProxyServerAndClient [
"-DOPENDHT_PROXY_SERVER=ON"
"-DOPENDHT_PROXY_CLIENT=ON"
] ++ lib.optionals enablePushNotifications [
"-DOPENDHT_PUSH_NOTIFICATIONS=ON"
];
outputs = [ "out" "lib" "dev" "man" ];
2017-07-11 18:00:07 +01:00
meta = with lib; {
2017-07-11 18:00:07 +01:00
description = "A C++11 Kademlia distributed hash table implementation";
2021-10-08 15:18:30 +01:00
homepage = "https://github.com/savoirfairelinux/opendht";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ taeer olynch thoughtpolice ];
2021-10-08 15:18:30 +01:00
platforms = platforms.unix;
2017-07-11 18:00:07 +01:00
};
}