nixpkgs/pkgs/development/libraries/opendht/default.nix
2021-09-16 15:13:36 +00:00

43 lines
957 B
Nix

{ lib, stdenv, fetchFromGitHub, darwin
, cmake, pkg-config
, asio, nettle, gnutls, msgpack, readline, libargon2
}:
stdenv.mkDerivation rec {
pname = "opendht";
version = "2.3.1";
src = fetchFromGitHub {
owner = "savoirfairelinux";
repo = "opendht";
rev = version;
sha256 = "sha256-Os5PRYTZMVekQrbwNODWsHANTx6RSC5vzGJ5JoYtvtE=";
};
nativeBuildInputs =
[ cmake
pkg-config
];
buildInputs =
[ asio
nettle
gnutls
msgpack
readline
libargon2
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
outputs = [ "out" "lib" "dev" "man" ];
meta = with lib; {
description = "A C++11 Kademlia distributed hash table implementation";
homepage = "https://github.com/savoirfairelinux/opendht";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ taeer olynch thoughtpolice ];
platforms = platforms.unix;
};
}