From 52ad3e180f67afe85d8cd73c620ec87be169aa9b Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 15 Feb 2026 19:45:03 +0100 Subject: [PATCH] antlr2: move CXXFLAGS into env for structuredAttrs --- pkgs/development/tools/parsing/antlr/2.7.7.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/parsing/antlr/2.7.7.nix b/pkgs/development/tools/parsing/antlr/2.7.7.nix index dc476806e1bb..cee3ff1b2e32 100644 --- a/pkgs/development/tools/parsing/antlr/2.7.7.nix +++ b/pkgs/development/tools/parsing/antlr/2.7.7.nix @@ -15,7 +15,9 @@ stdenv.mkDerivation rec { patches = [ ./2.7.7-fixes.patch ]; buildInputs = [ jdk ]; - CXXFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION"; + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + CXXFLAGS = "-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION"; + }; meta = { description = "Powerful parser generator";