llhttp: 9.2.1 -> 9.3.0

This commit is contained in:
Antoine du Hamel
2025-05-27 13:12:12 +02:00
parent 26e0b0347f
commit cc9c34ff0d
3 changed files with 14 additions and 20 deletions
+12 -8
View File
@@ -3,19 +3,20 @@
stdenv,
fetchFromGitHub,
cmake,
nix-update-script,
testers,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "llhttp";
version = "9.2.1";
version = "9.3.0";
src = fetchFromGitHub {
owner = "nodejs";
repo = "llhttp";
rev = "release/v${finalAttrs.version}";
hash = "sha256-cnEp7Ds32bqu3jeUU/rqJOr/VW3KNmJU4pmNNaTpXRs=";
tag = "release/v${finalAttrs.version}";
hash = "sha256-VL58h8sdJIpzMiWNqTvfp8oITjb0b3X/F8ygaE9cH94=";
};
outputs = [
@@ -28,9 +29,12 @@ stdenv.mkDerivation (finalAttrs: {
];
cmakeFlags = [
"-DBUILD_STATIC_LIBS=ON"
"-DBUILD_SHARED_LIBS=ON"
];
passthru.updateScript = nix-update-script {
extraArgs = [ "--version-regex=release/v(.+)" ];
};
passthru.tests = {
inherit (python3.pkgs) aiohttp;
@@ -40,12 +44,12 @@ stdenv.mkDerivation (finalAttrs: {
};
};
meta = with lib; {
meta = {
description = "Port of http_parser to llparse";
homepage = "https://llhttp.org/";
changelog = "https://github.com/nodejs/llhttp/releases/tag/release/v${finalAttrs.version}";
license = licenses.mit;
maintainers = [ ];
platforms = platforms.all;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aduh95 ];
platforms = lib.platforms.all;
};
})
-10
View File
@@ -15,7 +15,6 @@
llhttp,
openssl,
fmt,
fetchpatch2,
nix-update-script,
enableProxyServerAndClient ? false,
enablePushNotifications ? false,
@@ -32,15 +31,6 @@ stdenv.mkDerivation rec {
hash = "sha256-WNN4aCZiJuz9CgEKIzFmy50HBj0ZL/d1uU7L518lPhk=";
};
patches = lib.optionals enableProxyServerAndClient [
# Remove this patch when switching to using shared llhttp
(fetchpatch2 {
url = "https://github.com/savoirfairelinux/opendht/commit/2bc46e9657c94adcce2479807a0a04c2f783bd4e.patch?full_index=1";
hash = "sha256-znft836nPx8uvfHm0fQE9h+l5G006Im6IJOrsmElx6w=";
revert = true;
})
];
nativeBuildInputs = [
cmake
pkg-config
+2 -2
View File
@@ -46,7 +46,6 @@ stdenv.mkDerivation (finalAttrs: {
[
expected-lite
fmt
llhttp
openssl
pcre2
zlib
@@ -64,6 +63,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
catch2_3
llhttp
];
cmakeDir = "../dev";
@@ -76,7 +76,7 @@ stdenv.mkDerivation (finalAttrs: {
"-DRESTINIO_ASIO_SOURCE=${if with_boost_asio then "boost" else "standalone"}"
"-DRESTINIO_DEP_EXPECTED_LITE=find"
"-DRESTINIO_DEP_FMT=find"
"-DRESTINIO_DEP_LLHTTP=find"
"-DRESTINIO_DEP_LLHTTP=system"
"-DRESTINIO_DEP_CATCH2=find"
];