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

33 lines
845 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2016-08-25 10:30:47 +02:00
stdenv.mkDerivation rec {
pname = "kytea";
2016-08-25 10:30:47 +02:00
version = "0.4.7";
src = fetchurl {
url = "http://www.phontron.com/kytea/download/${pname}-${version}.tar.gz";
sha256 = "0ilzzwn5vpvm65bnbyb9f5rxyxy3jmbafw9w0lgl5iad1ka36jjk";
2016-08-25 10:30:47 +02:00
};
patches = [ ./gcc-O3.patch ];
2021-01-15 10:19:50 +01:00
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
2019-07-20 04:18:46 +02:00
meta = with lib; {
homepage = "http://www.phontron.com/kytea/";
2016-08-25 10:30:47 +02:00
description = "General toolkit developed for analyzing text";
longDescription = ''
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
};
}