42 lines
957 B
Nix
42 lines
957 B
Nix
{ lib, stdenv, fetchFromGitHub, darwin
|
|
, cmake, pkg-config
|
|
, asio, nettle, gnutls, msgpack, readline, libargon2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opendht";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "savoirfairelinux";
|
|
repo = "opendht";
|
|
rev = version;
|
|
sha256 = "sha256-u4MWMUbnq2q4FH0TMpbrbhS5erAfT4/3HYGLXaLTz+I=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|