From 94dae69d1f7c245a4de9a865f15e76c690989cd7 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Fri, 20 Dec 2024 14:36:23 +0300 Subject: [PATCH] angie: 1.7.0 -> 1.8.0 (cherry picked from commit 1bea45e135368a00890a7c77a7748d8a650e3d83) --- pkgs/servers/http/angie/default.nix | 4 ++-- pkgs/servers/http/nginx/generic.nix | 23 +++++++++++++++-------- pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/pkgs/servers/http/angie/default.nix b/pkgs/servers/http/angie/default.nix index bc93c5f9c2e07..5da1105e90db2 100644 --- a/pkgs/servers/http/angie/default.nix +++ b/pkgs/servers/http/angie/default.nix @@ -9,12 +9,12 @@ }@args: callPackage ../nginx/generic.nix args rec { - version = "1.7.0"; + version = "1.8.0"; pname = if withQuic then "angieQuic" else "angie"; src = fetchurl { url = "https://download.angie.software/files/angie-${version}.tar.gz"; - hash = "sha256-B5fm4BgV/bMLvJ9wOAA4fJyLLGARManDlQmjPXPyHAE="; + hash = "sha256-UbAylZB0ukki5AZ7XUgSLIQHekT3h8IqLyy/c/mBGwE="; }; configureFlags = diff --git a/pkgs/servers/http/nginx/generic.nix b/pkgs/servers/http/nginx/generic.nix index e50ab2cfbad0d..0a89466af792a 100644 --- a/pkgs/servers/http/nginx/generic.nix +++ b/pkgs/servers/http/nginx/generic.nix @@ -222,14 +222,21 @@ stdenv.mkDerivation { }) ./nix-skip-check-logs-path.patch ] - ++ lib.optionals (pname != "openresty") [ - # https://github.com/NixOS/nixpkgs/issues/357522 - # https://github.com/zlib-ng/patches/blob/5a036c0a00120c75ee573b27f4f44ade80d82ff2/nginx/README.md - (fetchpatch { - url = "https://raw.githubusercontent.com/zlib-ng/patches/38756e6325a5d2cc32709b8e9549984c63a78815/nginx/1.26.2-zlib-ng.patch"; - hash = "sha256-LX5kP6jFiqgt4ApKw5eqOAFJNkc5QI6kX8ZRvBYTi9k="; - }) - ] + ++ + lib.optionals + (lib.elem pname [ + "nginx" + "nginxQuic" + "tengine" + ]) + [ + # https://github.com/NixOS/nixpkgs/issues/357522 + # https://github.com/zlib-ng/patches/blob/5a036c0a00120c75ee573b27f4f44ade80d82ff2/nginx/README.md + (fetchpatch { + url = "https://raw.githubusercontent.com/zlib-ng/patches/38756e6325a5d2cc32709b8e9549984c63a78815/nginx/1.26.2-zlib-ng.patch"; + hash = "sha256-LX5kP6jFiqgt4ApKw5eqOAFJNkc5QI6kX8ZRvBYTi9k="; + }) + ] ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ (fetchpatch { url = "https://raw.githubusercontent.com/openwrt/packages/c057dfb09c7027287c7862afab965a4cd95293a3/net/nginx/patches/102-sizeof_test_fix.patch"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 804d2c7041e21..44ce86cea933f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1633,6 +1633,7 @@ with pkgs; android-tools = lowPrio (darwin.apple_sdk_11_0.callPackage ../tools/misc/android-tools { }); angie = callPackage ../servers/http/angie { + zlib-ng = zlib-ng.override { withZlibCompat = true; }; withPerl = false; # We don't use `with` statement here on purpose! # See https://github.com/NixOS/nixpkgs/pull/10474#discussion_r42369334 @@ -1640,6 +1641,7 @@ with pkgs; }; angieQuic = callPackage ../servers/http/angie { + zlib-ng = zlib-ng.override { withZlibCompat = true; }; withPerl = false; withQuic = true; # We don't use `with` statement here on purpose!