libfolia: move to by-name

This commit is contained in:
jopejoe1
2025-10-07 20:06:32 +02:00
parent 7180468bc2
commit 33008aefc9
3 changed files with 23 additions and 26 deletions
@@ -1,34 +1,33 @@
{
lib,
stdenv,
fetchurl,
automake,
autoconf,
fetchFromGitHub,
gitUpdater,
autoreconfHook,
libtool,
pkg-config,
autoconf-archive,
libxml2,
icu,
icu60,
bzip2,
libtar,
languageMachines,
ticcutils,
}:
let
release = lib.importJSON ./release-info/LanguageMachines-libfolia.json;
in
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "libfolia";
version = release.version;
src = fetchurl {
inherit (release) url sha256;
name = "libfolia-${release.version}.tar.gz";
version = "1.7";
src = fetchFromGitHub {
owner = "LanguageMachines";
repo = "libfolia";
tag = "v${finalAttrs.version}";
hash = "sha256-fH+XqTaMf7/8ZA0lwWiD7s7fmGkjni83Q7lv5sh50H4=";
};
nativeBuildInputs = [
pkg-config
automake
autoconf
autoreconfHook
];
buildInputs = [
bzip2
@@ -36,14 +35,17 @@ stdenv.mkDerivation {
autoconf-archive
libtar
libxml2
icu
languageMachines.ticcutils
icu60
ticcutils
];
preConfigure = "sh bootstrap.sh";
# 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"; };
};
meta = with lib; {
description = "C++ API for FoLiA documents; an XML-based linguistic annotation format";
mainProgram = "folialint";
@@ -57,4 +59,4 @@ stdenv.mkDerivation {
'';
};
}
})
@@ -5,7 +5,7 @@ let
in
{
ticcutils = pkgs.ticcutils;
libfolia = callPackage ./libfolia.nix { inherit icu; };
libfolia = pkgs.libfolia;
ucto = callPackage ./ucto.nix { inherit icu; };
uctodata = callPackage ./uctodata.nix { };
timbl = callPackage ./timbl.nix { };
@@ -1,5 +0,0 @@
{
"version": "v1.7",
"url": "https://api.github.com/repos/LanguageMachines/libfolia/tarball/v1.7",
"sha256": "0hpxdry7n2887klryc587xv46p6z6jp6hz9x7k2pk5v7jb0z4s65"
}