2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-03-23 15:13:28 +01:00
|
|
|
, cmake, pkg-config
|
|
|
|
, asio, nettle, gnutls, msgpack, readline, libargon2
|
2017-07-11 19:00:07 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "opendht";
|
2020-11-04 01:02:29 +01:00
|
|
|
version = "2.1.6";
|
2017-07-11 19:00:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "savoirfairelinux";
|
|
|
|
repo = "opendht";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2020-11-04 01:02:29 +01:00
|
|
|
sha256 = "0sjb2a3yqnabwgmmn8gapc1dq9m8vp9z8w85zhsj654i5h3gp6zv";
|
2017-07-11 19:00:07 +02:00
|
|
|
};
|
|
|
|
|
2018-08-31 00:10:39 +02:00
|
|
|
nativeBuildInputs =
|
2020-03-23 15:13:28 +01:00
|
|
|
[ cmake
|
|
|
|
pkg-config
|
2018-08-31 00:10:39 +02:00
|
|
|
];
|
2017-07-11 19:00:07 +02:00
|
|
|
|
2018-08-31 00:10:39 +02:00
|
|
|
buildInputs =
|
2020-03-23 15:13:28 +01:00
|
|
|
[ asio
|
|
|
|
nettle
|
2018-08-31 00:10:39 +02:00
|
|
|
gnutls
|
|
|
|
msgpack
|
|
|
|
readline
|
|
|
|
libargon2
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "lib" "dev" "man" ];
|
2017-07-11 19:00:07 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2017-07-11 19:00:07 +02:00
|
|
|
description = "A C++11 Kademlia distributed hash table implementation";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/savoirfairelinux/opendht";
|
2018-08-31 00:10:39 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ taeer olynch thoughtpolice ];
|
|
|
|
platforms = platforms.linux;
|
2017-07-11 19:00:07 +02:00
|
|
|
};
|
|
|
|
}
|