lol
1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4
5 pname = "kytea";
6 version = "0.4.7";
7
8 src = fetchurl {
9 url = "http://www.phontron.com/kytea/download/${pname}-${version}.tar.gz";
10 sha256 = "0ilzzwn5vpvm65bnbyb9f5rxyxy3jmbafw9w0lgl5iad1ka36jjk";
11 };
12
13 patches = [ ./gcc-O3.patch ];
14
15 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
16
17 meta = with lib; {
18 homepage = "http://www.phontron.com/kytea/";
19 description = "General toolkit developed for analyzing text";
20
21 longDescription = ''
22 A general toolkit developed for analyzing text, with a focus on Japanese,
23 Chinese and other languages requiring word or morpheme segmentation.
24 '';
25
26 license = licenses.asl20;
27
28 maintainers = with maintainers; [ ericsagnes ];
29 platforms = platforms.unix;
30 };
31
32}