summary refs log tree commit diff
path: root/pkgs/development/libraries/languagemachines/ticcutils.nix
blob: 779ec664996a6cf4f8eec3330de9cf5719101849 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl
, automake, autoconf, libtool, pkgconfig, autoconf-archive
, libxml2, zlib, bzip2, libtar }:

let
  release = builtins.fromJSON (builtins.readFile ./release-info/LanguageMachines-ticcutils.json);
in

stdenv.mkDerivation {
  name = "ticcutils-${release.version}";
  version = release.version;
  src = fetchurl { inherit (release) url sha256;
                   name = "ticcutils-${release.version}.tar.gz"; };
  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ automake autoconf libtool autoconf-archive libxml2
                  # optional:
                  zlib bzip2 libtar
                  # broken but optional: boost
                ];
  preConfigure = "sh bootstrap.sh";

  meta = with stdenv.lib; {
    description = "This module contains useful functions for general use in the TiCC software stack and beyond.";
    homepage    = https://github.com/LanguageMachines/ticcutils;
    license     = licenses.gpl3;
    platforms   = platforms.all;
    maintainers = with maintainers; [ roberth ];
  };

}