2016-08-25 10:30:47 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "kytea";
|
2016-08-25 10:30:47 +02:00
|
|
|
version = "0.4.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://www.phontron.com/kytea/download/${pname}-${version}.tar.gz";
|
2017-03-01 00:26:26 +01:00
|
|
|
sha256 = "0ilzzwn5vpvm65bnbyb9f5rxyxy3jmbafw9w0lgl5iad1ka36jjk";
|
2016-08-25 10:30:47 +02:00
|
|
|
};
|
|
|
|
|
2018-05-29 19:09:28 +02:00
|
|
|
patches = [ ./gcc-O3.patch ];
|
|
|
|
|
2019-07-20 04:18:46 +02:00
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
|
|
|
|
2016-08-25 10:30:47 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.phontron.com/kytea/";
|
2016-08-25 10:30:47 +02:00
|
|
|
description = "General toolkit developed for analyzing text";
|
|
|
|
|
|
|
|
longDescription = ''
|
2018-05-29 19:09:28 +02:00
|
|
|
A general toolkit developed for analyzing text, with a focus on Japanese,
|
2016-08-25 10:30:47 +02:00
|
|
|
Chinese and other languages requiring word or morpheme segmentation.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.asl20;
|
|
|
|
|
2019-12-26 22:28:10 +01:00
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
2019-07-20 04:18:46 +02:00
|
|
|
platforms = platforms.unix;
|
2016-08-25 10:30:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|