about summary refs log tree commit diff
path: root/pkgs/tools/text
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2023-11-03 18:34:41 -0400
committerRandy Eckenrode <randy@largeandhighquality.com>2023-11-04 18:10:06 -0400
commit1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd (patch)
treeefaa75aff2c62144b70977ba253b45ffb8669715 /pkgs/tools/text
parentead4c02affa92335172aa92be158cc0bbf071caa (diff)
downloadnixlib-1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd.tar
nixlib-1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd.tar.gz
nixlib-1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd.tar.bz2
nixlib-1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd.tar.lz
nixlib-1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd.tar.xz
nixlib-1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd.tar.zst
nixlib-1fef1d87bbd78ce1ab182bd721098fdc9a2f7afd.zip
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.
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r--pkgs/tools/text/mecab/base.nix4
1 files changed, 4 insertions, 0 deletions
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;
 }