summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cudf/default.nix
blob: d2090cda676930ae7299490705932ef48e1a8282 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib, fetchurl, stdenv, ocaml, ocamlbuild, findlib, ocaml_extlib, glib, perl, pkg-config, stdlib-shims, ounit }:

stdenv.mkDerivation {
  pname = "ocaml${ocaml.version}-cudf";
  version = "0.9";

  src = fetchurl {
    url = "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz";
    sha256 = "sha256-mTLk2V3OI1sUNIYv84nM3reiirf0AuozG5ZzLCmn4Rw=";
  };

  buildFlags = [
    "all"
    "opt"
  ];
  nativeBuildInputs = [
    findlib
    ocaml
    ocamlbuild
    pkg-config
  ];
  buildInputs = [
    glib
    perl
    stdlib-shims
  ];
  propagatedBuildInputs = [
    ocaml_extlib
  ];

  checkTarget = [
    "all"
    "test"
  ];
  checkInputs = [
    ounit
  ];
  doCheck = true;

  preInstall = "mkdir -p $OCAMLFIND_DESTDIR";
  installFlags = "BINDIR=$(out)/bin";

  meta = with lib; {
    description = "A library for CUDF format";
    homepage = "http://www.mancoosi.org/cudf/";
    downloadPage = "https://gforge.inria.fr/projects/cudf/";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ superherointj ];
  };
}