Files
nixpkgs/pkgs/by-name/op/opendht/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

87 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
asio,
nettle,
gnutls,
msgpack-cxx,
readline,
libargon2,
jsoncpp,
restinio,
llhttp,
openssl,
fmt,
nix-update-script,
enableProxyServerAndClient ? false,
enablePushNotifications ? false,
}:
stdenv.mkDerivation rec {
pname = "opendht";
version = "3.4.0";
src = fetchFromGitHub {
owner = "savoirfairelinux";
repo = "opendht";
tag = "v${version}";
hash = "sha256-WNN4aCZiJuz9CgEKIzFmy50HBj0ZL/d1uU7L518lPhk=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
asio
fmt
nettle
gnutls
msgpack-cxx
readline
libargon2
]
++ lib.optionals enableProxyServerAndClient [
jsoncpp
restinio
llhttp
openssl
];
cmakeFlags =
lib.optionals enableProxyServerAndClient [
"-DOPENDHT_PROXY_SERVER=ON"
"-DOPENDHT_PROXY_CLIENT=ON"
]
++ lib.optionals enablePushNotifications [
"-DOPENDHT_PUSH_NOTIFICATIONS=ON"
];
outputs = [
"out"
"lib"
"dev"
"man"
];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version-regex=v(.+)" ];
};
meta = with lib; {
description = "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;
};
}