2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, mecab-ipadic, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2023-11-16 04:20:00 +00:00
|
|
|
mecab-base = import ./base.nix { inherit fetchurl libiconv; };
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: ((mecab-base finalAttrs) // {
|
|
|
|
pname = "mecab";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postInstall = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
mkdir -p $out/lib/mecab/dic
|
|
|
|
ln -s ${mecab-ipadic} $out/lib/mecab/dic/ipadic
|
2023-10-09 19:29:22 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29: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";
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = with maintainers; [ auntie ];
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
}))
|