nixpkgs/pkgs/tools/text/kytea/default.nix
Artturin f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00

32 lines
849 B
Nix

{ 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 ];
env.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;
};
}