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