From f0def91683693e0d4d77b558395502fb5ec87689 Mon Sep 17 00:00:00 2001 From: alina sireneva Date: Mon, 20 May 2024 22:57:57 +0300 Subject: [PATCH] antlr2: fixed darwin build --- pkgs/development/tools/parsing/antlr/2.7.7.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/parsing/antlr/2.7.7.nix b/pkgs/development/tools/parsing/antlr/2.7.7.nix index b7437d70bf80..a47918f4354b 100644 --- a/pkgs/development/tools/parsing/antlr/2.7.7.nix +++ b/pkgs/development/tools/parsing/antlr/2.7.7.nix @@ -10,6 +10,8 @@ stdenv.mkDerivation rec { patches = [ ./2.7.7-fixes.patch ]; buildInputs = [ jdk ]; + CXXFLAGS = lib.optionalString stdenv.isDarwin "-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION"; + meta = with lib; { description = "Powerful parser generator"; longDescription = ''