1 { lib, stdenv, fetchurl
2 , automake, autoconf, libtool, pkg-config, autoconf-archive
3 , libxml2, icu, bzip2, libtar
7 release = lib.importJSON ./release-info/LanguageMachines-libfolia.json;
12 version = release.version;
13 src = fetchurl { inherit (release) url sha256;
14 name = "libfolia-${release.version}.tar.gz"; };
15 nativeBuildInputs = [ pkg-config automake autoconf ];
16 buildInputs = [ bzip2 libtool autoconf-archive libtar libxml2 icu languageMachines.ticcutils ];
17 preConfigure = "sh bootstrap.sh";
19 # compat with icu61+ https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554
20 CXXFLAGS = [ "-DU_USING_ICU_NAMESPACE=1" ];
23 description = "A C++ API for FoLiA documents; an XML-based linguistic annotation format.";
24 homepage = "https://proycon.github.io/folia/";
25 license = licenses.gpl3;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ roberth ];
30 A high-level C++ API to read, manipulate, and create FoLiA documents. FoLiA is an XML-based annotation format, suitable for the representation of linguistically annotated language resources. FoLiA’s intended use is as a format for storing and/or exchanging language resources, including corpora.