8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
32 lines
854 B
Nix
32 lines
854 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kytea";
|
|
version = "0.4.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.phontron.com/kytea/download/${pname}-${version}.tar.gz";
|
|
sha256 = "0ilzzwn5vpvm65bnbyb9f5rxyxy3jmbafw9w0lgl5iad1ka36jjk";
|
|
};
|
|
|
|
patches = [ ./gcc-O3.patch ];
|
|
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://www.phontron.com/kytea/";
|
|
description = "General toolkit developed for analyzing text";
|
|
|
|
longDescription = ''
|
|
A general toolkit developed for analyzing text, with a focus on Japanese,
|
|
Chinese and other languages requiring word or morpheme segmentation.
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|