uctodata: move to by-name

This commit is contained in:
jopejoe1
2025-10-07 20:13:40 +02:00
parent 33008aefc9
commit 12a7f7384e
3 changed files with 20 additions and 22 deletions
@@ -1,35 +1,38 @@
{
lib,
stdenv,
fetchurl,
automake,
autoconf,
fetchFromGitHub,
gitUpdater,
autoreconfHook,
libtool,
pkg-config,
autoconf-archive,
}:
let
release = lib.importJSON ./release-info/LanguageMachines-uctodata.json;
in
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "uctodata";
version = release.version;
src = fetchurl {
inherit (release) url sha256;
name = "uctodata-${release.version}.tar.gz";
version = "0.4";
src = fetchFromGitHub {
owner = "LanguageMachines";
repo = "uctodata";
tag = "v${finalAttrs.version}";
hash = "sha256-4P9icZSm+DYGxGobSGzSExTv+ZQaLjkJ0gvOI27byRk=";
};
nativeBuildInputs = [
pkg-config
automake
autoconf
autoreconfHook
];
buildInputs = [
libtool
autoconf-archive
];
preConfigure = "sh bootstrap.sh";
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
};
meta = with lib; {
description = "Rule-based tokenizer for natural language";
@@ -45,4 +48,4 @@ stdenv.mkDerivation {
'';
};
}
})
@@ -7,7 +7,7 @@ in
ticcutils = pkgs.ticcutils;
libfolia = pkgs.libfolia;
ucto = callPackage ./ucto.nix { inherit icu; };
uctodata = callPackage ./uctodata.nix { };
uctodata = pkgs.uctodata;
timbl = callPackage ./timbl.nix { };
timblserver = callPackage ./timblserver.nix { };
mbt = callPackage ./mbt.nix { };
@@ -1,5 +0,0 @@
{
"version": "v0.4",
"url": "https://api.github.com/repos/LanguageMachines/uctodata/tarball/v0.4",
"sha256": "02c78qmwi9ijpk5wila3p62fmfdy1rpmlvvzbxs3wg0rdb0nwvd2"
}