2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, mecab-ipadic }:
|
2016-06-26 20:47:23 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
mecab-base = import ./base.nix { inherit fetchurl; };
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation (mecab-base // {
|
2021-11-29 18:24:13 +00:00
|
|
|
pname = "mecab";
|
|
|
|
version = mecab-base.version;
|
2016-06-26 20:47:23 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
sed -i 's|^dicdir = .*$|dicdir = ${mecab-ipadic}|' "$out/etc/mecabrc"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-26 20:47:23 +00:00
|
|
|
description = "Japanese morphological analysis system";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://taku910.github.io/mecab/";
|
2016-06-26 20:47:23 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ auntie ];
|
|
|
|
};
|
|
|
|
})
|