2023-10-24 08:39:04 +00:00
|
|
|
{ fetchurl, libiconv }:
|
2016-06-26 20:47:23 +00:00
|
|
|
|
2023-09-26 17:56:22 +00:00
|
|
|
finalAttrs: {
|
|
|
|
version = "0.996";
|
2016-06-26 20:47:23 +00:00
|
|
|
|
2023-09-26 17:56:22 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE";
|
|
|
|
name = "mecab-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-4HMyV4MTW3LmZhRceBu0j62lg9UiT7JJD7bBQDumnFk=";
|
|
|
|
};
|
2016-06-26 20:47:23 +00:00
|
|
|
|
2023-10-24 08:39:04 +00:00
|
|
|
buildInputs = [ libiconv ];
|
|
|
|
|
2023-09-26 18:02:51 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--with-charset=utf8"
|
|
|
|
];
|
|
|
|
|
2023-11-03 22:34:41 +00:00
|
|
|
# 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" ];
|
|
|
|
|
2023-09-26 17:56:22 +00:00
|
|
|
doCheck = true;
|
2016-06-26 20:47:23 +00:00
|
|
|
}
|