From 071b810f952aad61b3ffc85379877b6ea8ff6b88 Mon Sep 17 00:00:00 2001 From: Qyriad Date: Wed, 24 Jun 2026 13:32:35 +0200 Subject: [PATCH] package: override Curl to remove backported patch that breaks our tests Cherry-picked-from: https://github.com/nixos-cuda/nixpkgs/commit/3f596088797d2e3a62e20cae2d2936e8548a690e Co-authored-by: Atemu Change-Id: I5d060872d4d0ae283d73b4268af612326a6a6964 --- package.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package.nix b/package.nix index a9b5e251a..aa5971917 100644 --- a/package.nix +++ b/package.nix @@ -21,6 +21,7 @@ callPackage, capnproto, cmake, + curl-lix ? __forDefaults.curl-lix, curl, doxygen, editline-lix ? __forDefaults.editline-lix, @@ -123,6 +124,14 @@ NIX_CFLAGS_COMPILE = (oldAttrs.NIX_CFLAGS_COMPILE or "") + " -DINITIAL_MARK_STACK_SIZE=1048576"; }); + # Nixpkgs backported a Curl patch that breaks our unit tests, somehow. + # https://github.com/NixOS/nixpkgs/issues/534713#event-27130052199 + curl-lix = curl.overrideAttrs (prev: { + patches = lib.filter (patch: !lib.strings.hasSuffix "fix-wakeup-consumption.patch" patch) ( + prev.patches or [ ] + ); + }); + editline-lix = editline.overrideAttrs (prev: { configureFlags = (prev.configureFlags or [ ]) ++ [ # Enable SIGSTOP (Ctrl-Z) behavior. @@ -455,7 +464,7 @@ stdenv.mkDerivation (finalAttrs: { lsof zstd # For mTLS tests - curl + curl-lix ] ++ lib.optional useLld lldBintools ++ lib.optional hostPlatform.isLinux util-linuxMinimal @@ -474,7 +483,7 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ - curl + curl-lix bzip2 xz brotli @@ -684,6 +693,7 @@ stdenv.mkDerivation (finalAttrs: { passthru = { inherit (__forDefaults) boehmgc-nix + curl-lix editline-lix build-release-notes pegtl