diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/kytea/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/kytea/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/kytea/default.nix b/nixpkgs/pkgs/tools/text/kytea/default.nix new file mode 100644 index 000000000000..9cbc2c030a45 --- /dev/null +++ b/nixpkgs/pkgs/tools/text/kytea/default.nix @@ -0,0 +1,32 @@ +{ lib, 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 = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing"; + + meta = with 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; + }; + +} |