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
|
2023-09-26 17:56:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: ((mecab-base finalAttrs) // {
|
|
|
|
pname = "mecab";
|
2016-06-26 20:47:23 +00:00
|
|
|
|
2023-09-26 17:56:22 +00:00
|
|
|
postInstall = ''
|
|
|
|
sed -i 's|^dicdir = .*$|dicdir = ${mecab-ipadic}|' "$out/etc/mecabrc"
|
|
|
|
'';
|
2016-06-26 20:47:23 +00:00
|
|
|
|
2023-09-26 17:56:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Japanese morphological analysis system";
|
|
|
|
homepage = "http://taku910.github.io/mecab";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
mainProgram = "mecab";
|
|
|
|
maintainers = with maintainers; [ auntie paveloom ];
|
|
|
|
};
|
|
|
|
}))
|