Commit 6196a954 authored by jopejoe1's avatar jopejoe1
Browse files

timbl: move to by-name

parent f7ddbc80
Loading
Loading
Loading
Loading
+20 −18
Original line number Diff line number Diff line
{
  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 {
    '';
  };

}
})
+1 −1
Original line number Diff line number Diff line
@@ -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; };
+0 −5
Original line number Diff line number Diff line
{
  "version": "v6.4.9",
  "url": "https://api.github.com/repos/LanguageMachines/timbl/tarball/v6.4.9",
  "sha256": "1279npc3xlq05hnkylpbkgg941gjhvl6sd5fw4vgwcx2rwmmlaay"
}