From 1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 3 Nov 2023 18:34:41 -0400 Subject: [PATCH] mecab: fix build with clang 16 Force the language mode to C++14. mecab-nodic uses several features that have been removed from C++17. --- pkgs/tools/text/mecab/base.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/text/mecab/base.nix b/pkgs/tools/text/mecab/base.nix index 572ec28c0750..ea572104238c 100644 --- a/pkgs/tools/text/mecab/base.nix +++ b/pkgs/tools/text/mecab/base.nix @@ -15,5 +15,9 @@ finalAttrs: { "--with-charset=utf8" ]; + # mecab uses several features that have been removed in C++17. + # Force the language mode to C++14, so that it can compile with clang 16. + makeFlags = [ "CXXFLAGS=-std=c++14" ]; + doCheck = true; }