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