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