Commit 12a7f738 authored by jopejoe1's avatar jopejoe1
Browse files

uctodata: move to by-name

parent 33008aef
Loading
Loading
Loading
Loading
+19 −16
Original line number Diff line number Diff line
{
  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 {
    '';
  };

}
})
+1 −1
Original line number Diff line number Diff line
@@ -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 { };
+0 −5
Original line number Diff line number Diff line
{
  "version": "v0.4",
  "url": "https://api.github.com/repos/LanguageMachines/uctodata/tarball/v0.4",
  "sha256": "02c78qmwi9ijpk5wila3p62fmfdy1rpmlvvzbxs3wg0rdb0nwvd2"
}