nixpkgs/pkgs/tools/text/kytea/default.nix

33 lines
845 B
Nix
Raw Normal View History

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