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 15 llhttp, 16 16 openssl, 17 17 fmt, 18 + fetchpatch2, 19 + nix-update-script, 18 20 enableProxyServerAndClient ? false, 19 21 enablePushNotifications ? false, 20 22 }: 21 23 22 - stdenv.mkDerivation { 24 + stdenv.mkDerivation rec { 23 25 pname = "opendht"; 24 - version = "3.2.0-unstable-2025-01-05"; 26 + version = "3.4.0"; 25 27 26 28 src = fetchFromGitHub { 27 29 owner = "savoirfairelinux"; 28 30 repo = "opendht"; 29 - rev = "5237f0a3b3eb8965f294de706ad73596569ae1dd"; 30 - hash = "sha256-qErVKyZQR/asJ8qr0sRDaXZ8jUV7RaSLnJka5baWa7Q="; 31 + tag = "v${version}"; 32 + hash = "sha256-WNN4aCZiJuz9CgEKIzFmy50HBj0ZL/d1uU7L518lPhk="; 31 33 }; 32 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 + 33 44 nativeBuildInputs = [ 34 45 cmake 35 46 pkg-config ··· 61 72 "-DOPENDHT_PUSH_NOTIFICATIONS=ON" 62 73 ]; 63 74 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 75 outputs = [ 72 76 "out" 73 77 "lib" 74 78 "dev" 75 79 "man" 76 80 ]; 81 + 82 + passthru.updateScript = nix-update-script { 83 + extraArgs = [ "--version-regex=v(.+)" ]; 84 + }; 77 85 78 86 meta = with lib; { 79 87 description = "C++11 Kademlia distributed hash table implementation";