timbl: move to by-name

This commit is contained in:
jopejoe1
2025-10-07 20:30:36 +02:00
parent f7ddbc808d
commit 6196a95485
3 changed files with 21 additions and 24 deletions
@@ -1,33 +1,32 @@
{
lib,
stdenv,
fetchurl,
automake,
autoconf,
fetchFromGitHub,
gitUpdater,
autoreconfHook,
libtool,
pkg-config,
autoconf-archive,
libxml2,
bzip2,
libtar,
languageMachines,
ticcutils,
}:
let
release = lib.importJSON ./release-info/LanguageMachines-timbl.json;
in
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "timbl";
version = release.version;
src = fetchurl {
inherit (release) url sha256;
name = "timbl-${release.version}.tar.gz";
version = "6.4.9";
src = fetchFromGitHub {
owner = "LanguageMachines";
repo = "timbl";
tag = "v${finalAttrs.version}";
hash = "sha256-6hg/NiA5c5txyB7xYSlxA2WzAyNTF6JpupLpmzfxOYg=";
};
nativeBuildInputs = [
pkg-config
automake
autoconf
autoreconfHook
];
buildInputs = [
bzip2
@@ -35,9 +34,12 @@ stdenv.mkDerivation {
libtool
autoconf-archive
libxml2
languageMachines.ticcutils
ticcutils
];
preConfigure = "sh bootstrap.sh";
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
};
meta = with lib; {
description = "TiMBL implements several memory-based learning algorithms";
@@ -54,4 +56,4 @@ stdenv.mkDerivation {
'';
};
}
})
@@ -8,7 +8,7 @@ in
libfolia = pkgs.libfolia;
ucto = pkgs.ucto;
uctodata = pkgs.uctodata;
timbl = callPackage ./timbl.nix { };
timbl = pkgs.timbl;
timblserver = callPackage ./timblserver.nix { };
mbt = callPackage ./mbt.nix { };
frog = callPackage ./frog.nix { inherit icu; };
@@ -1,5 +0,0 @@
{
"version": "v6.4.9",
"url": "https://api.github.com/repos/LanguageMachines/timbl/tarball/v6.4.9",
"sha256": "1279npc3xlq05hnkylpbkgg941gjhvl6sd5fw4vgwcx2rwmmlaay"
}