opendht: 3.2.0 -> 3.4.0 (#410596)

authored by Arne Keller and committed by GitHub d1401f1b cb8ee8ea

+19 -11
+19 -11
pkgs/by-name/op/opendht/package.nix
··· 15 llhttp, 16 openssl, 17 fmt, 18 enableProxyServerAndClient ? false, 19 enablePushNotifications ? false, 20 }: 21 22 - stdenv.mkDerivation { 23 pname = "opendht"; 24 - version = "3.2.0-unstable-2025-01-05"; 25 26 src = fetchFromGitHub { 27 owner = "savoirfairelinux"; 28 repo = "opendht"; 29 - rev = "5237f0a3b3eb8965f294de706ad73596569ae1dd"; 30 - hash = "sha256-qErVKyZQR/asJ8qr0sRDaXZ8jUV7RaSLnJka5baWa7Q="; 31 }; 32 33 nativeBuildInputs = [ 34 cmake 35 pkg-config ··· 61 "-DOPENDHT_PUSH_NOTIFICATIONS=ON" 62 ]; 63 64 - # https://github.com/savoirfairelinux/opendht/issues/612 65 - postPatch = '' 66 - substituteInPlace CMakeLists.txt \ 67 - --replace '\$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \ 68 - --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR} 69 - ''; 70 - 71 outputs = [ 72 "out" 73 "lib" 74 "dev" 75 "man" 76 ]; 77 78 meta = with lib; { 79 description = "C++11 Kademlia distributed hash table implementation";
··· 15 llhttp, 16 openssl, 17 fmt, 18 + fetchpatch2, 19 + nix-update-script, 20 enableProxyServerAndClient ? false, 21 enablePushNotifications ? false, 22 }: 23 24 + stdenv.mkDerivation rec { 25 pname = "opendht"; 26 + version = "3.4.0"; 27 28 src = fetchFromGitHub { 29 owner = "savoirfairelinux"; 30 repo = "opendht"; 31 + tag = "v${version}"; 32 + hash = "sha256-WNN4aCZiJuz9CgEKIzFmy50HBj0ZL/d1uU7L518lPhk="; 33 }; 34 35 + patches = lib.optionals enableProxyServerAndClient [ 36 + # Remove this patch when switching to using shared llhttp 37 + (fetchpatch2 { 38 + url = "https://github.com/savoirfairelinux/opendht/commit/2bc46e9657c94adcce2479807a0a04c2f783bd4e.patch?full_index=1"; 39 + hash = "sha256-znft836nPx8uvfHm0fQE9h+l5G006Im6IJOrsmElx6w="; 40 + revert = true; 41 + }) 42 + ]; 43 + 44 nativeBuildInputs = [ 45 cmake 46 pkg-config ··· 72 "-DOPENDHT_PUSH_NOTIFICATIONS=ON" 73 ]; 74 75 outputs = [ 76 "out" 77 "lib" 78 "dev" 79 "man" 80 ]; 81 + 82 + passthru.updateScript = nix-update-script { 83 + extraArgs = [ "--version-regex=v(.+)" ]; 84 + }; 85 86 meta = with lib; { 87 description = "C++11 Kademlia distributed hash table implementation";