summary refs log tree commit diff
path: root/pkgs/tools/text/mecab/ipadic.nix
blob: 61d23f87a8cecd86d02ba12f5b059588f210a7d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv, fetchurl, mecab-nodic }:

stdenv.mkDerivation (finalAttrs: {
  pname = "mecab-ipadic";
  version = "2.7.0-20070801";

  src = fetchurl {
    url = "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM";
    name = "mecab-ipadic-${finalAttrs.version}.tar.gz";
    hash = "sha256-ti9SfYgcUEV2uu2cbvZWFVRlixdc5q4AlqYDB+SeNSM=";
  };

  buildInputs = [ mecab-nodic ];

  configureFlags = [
    "--with-charset=utf8"
    "--with-dicdir=${placeholder "out"}"
  ];
})