nixpkgs/pkgs/tools/text/mecab/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
592 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, mecab-ipadic, libiconv }:
let
mecab-base = import ./base.nix { inherit fetchurl libiconv; };
in
2023-09-26 18:56:22 +01:00
stdenv.mkDerivation (finalAttrs: ((mecab-base finalAttrs) // {
pname = "mecab";
2023-09-26 18:56:22 +01:00
postInstall = ''
2023-10-20 08:40:47 +01:00
mkdir -p $out/lib/mecab/dic
ln -s ${mecab-ipadic} $out/lib/mecab/dic/ipadic
2023-09-26 18:56:22 +01:00
'';
2023-09-26 18:56:22 +01: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 ];
2023-09-26 18:56:22 +01:00
};
}))