From ce36981c6150fe026ffe1680829a4abbf8776bd7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 25 Oct 2025 13:38:53 +0000 Subject: [PATCH 1/2] libhv: 1.3.3 -> 1.3.4 --- pkgs/by-name/li/libhv/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libhv/package.nix b/pkgs/by-name/li/libhv/package.nix index c7fabd5eb5c6..f764e0f0000b 100644 --- a/pkgs/by-name/li/libhv/package.nix +++ b/pkgs/by-name/li/libhv/package.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "libhv"; - version = "1.3.3"; + version = "1.3.4"; src = fetchFromGitHub { owner = "ithewei"; repo = "libhv"; rev = "v${finalAttrs.version}"; - hash = "sha256-N2YD84eORA5nDpeeqy9jCvRx86PkRaKLzI6LF1AnHtU="; + hash = "sha256-YIWXdAZsWeSdtPtBaf/t9t68dFKw2nY0bvgMrzCEE5U="; }; nativeBuildInputs = [ cmake ]; From 07dbd17ee4cfab0f671c0aac791aada0436e495d Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Sat, 25 Oct 2025 18:24:55 +0400 Subject: [PATCH 2/2] libhv: modernize --- pkgs/by-name/li/libhv/package.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/by-name/li/libhv/package.nix b/pkgs/by-name/li/libhv/package.nix index f764e0f0000b..54e168cb80ee 100644 --- a/pkgs/by-name/li/libhv/package.nix +++ b/pkgs/by-name/li/libhv/package.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchFromGitHub { owner = "ithewei"; repo = "libhv"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-YIWXdAZsWeSdtPtBaf/t9t68dFKw2nY0bvgMrzCEE5U="; }; @@ -26,19 +26,19 @@ stdenv.mkDerivation (finalAttrs: { ]; cmakeFlags = [ - "-DENABLE_UDS=ON" - "-DWITH_MQTT=ON" - "-DWITH_CURL=ON" - "-DWITH_NGHTTP2=ON" - "-DWITH_OPENSSL=ON" - "-DWITH_KCP=ON" + (lib.cmakeBool "ENABLE_UDS" true) + (lib.cmakeBool "WITH_MQTT" true) + (lib.cmakeBool "WITH_CURL" true) + (lib.cmakeBool "WITH_NGHTTP2" true) + (lib.cmakeBool "WITH_OPENSSL" true) + (lib.cmakeBool "WITH_KCP" true) ]; - meta = with lib; { + meta = { description = "C/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket/MQTT client/server"; homepage = "https://github.com/ithewei/libhv"; - license = licenses.bsd3; - maintainers = with maintainers; [ sikmir ]; - platforms = platforms.unix; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ sikmir ]; + platforms = lib.platforms.unix; }; })