Files
nixpkgs/pkgs/by-name/li/libfolia/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.6 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
stdenv,
fetchFromGitHub,
gitUpdater,
autoreconfHook,
libtool,
pkg-config,
autoconf-archive,
libxml2,
icu60,
bzip2,
libtar,
ticcutils,
frog,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libfolia";
version = "1.7";
src = fetchFromGitHub {
owner = "LanguageMachines";
repo = "libfolia";
tag = "v${finalAttrs.version}";
hash = "sha256-fH+XqTaMf7/8ZA0lwWiD7s7fmGkjni83Q7lv5sh50H4=";
};
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
bzip2
libtool
autoconf-archive
libtar
libxml2
icu60
ticcutils
];
# compat with icu61+ https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554
CXXFLAGS = [ "-DU_USING_ICU_NAMESPACE=1" ];
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
tests = {
/**
Reverse dependencies. Does not respect overrides.
*/
reverseDependencies = lib.recurseIntoAttrs {
inherit frog;
};
};
};
meta = with lib; {
description = "C++ API for FoLiA documents; an XML-based linguistic annotation format";
mainProgram = "folialint";
homepage = "https://proycon.github.io/folia/";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = with maintainers; [ roberth ];
longDescription = ''
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. FoLiAs intended use is as a format for storing and/or exchanging language resources, including corpora.
'';
};
})