nixpkgs/pkgs/development/libraries/opendht/default.nix

43 lines
957 B
Nix
Raw Normal View History

2021-08-15 19:55:53 +00:00
{ lib, stdenv, fetchFromGitHub, darwin
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 {
pname = "opendht";
2021-08-15 16:00:07 +00:00
version = "2.2.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;
2021-08-15 16:00:07 +00:00
sha256 = "sha256-u4MWMUbnq2q4FH0TMpbrbhS5erAfT4/3HYGLXaLTz+I=";
2017-07-11 17:00:07 +00:00
};
nativeBuildInputs =
2020-03-23 14:13:28 +00:00
[ cmake
pkg-config
];
2017-07-11 17:00:07 +00:00
buildInputs =
2020-03-23 14:13:28 +00:00
[ asio
nettle
gnutls
msgpack
readline
libargon2
2021-08-15 19:55:53 +00:00
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
outputs = [ "out" "lib" "dev" "man" ];
2017-07-11 17:00:07 +00:00
meta = with lib; {
2017-07-11 17:00:07 +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-15 19:55:53 +00:00
platforms = platforms.unix;
2017-07-11 17:00:07 +00:00
};
}