From 887559386dc3a1c7b747cde688904ce92bb932d3 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Fri, 30 Jan 2026 23:37:36 +0100 Subject: [PATCH] apacheHttpd: move NIX_LDFLAGS into env for structuredAttrs --- pkgs/servers/http/apache-httpd/2.4.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/http/apache-httpd/2.4.nix b/pkgs/servers/http/apache-httpd/2.4.nix index 762aa9a757dc..0fdcd9c680ab 100644 --- a/pkgs/servers/http/apache-httpd/2.4.nix +++ b/pkgs/servers/http/apache-httpd/2.4.nix @@ -86,7 +86,9 @@ stdenv.mkDerivation rec { ''; # Required for ‘pthread_cancel’. - NIX_LDFLAGS = lib.optionalString (!stdenv.hostPlatform.isDarwin) "-lgcc_s"; + env = lib.optionalAttrs (!stdenv.hostPlatform.isDarwin) { + NIX_LDFLAGS = "-lgcc_s"; + }; configureFlags = [ "--with-apr=${apr.dev}"