1{ lib, fetchurl, stdenv, ocaml, ocamlbuild, findlib, extlib, glib, perl, pkg-config, stdlib-shims, ounit }:
2
3stdenv.mkDerivation {
4 pname = "ocaml${ocaml.version}-cudf";
5 version = "0.9";
6
7 src = fetchurl {
8 url = "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz";
9 sha256 = "sha256-mTLk2V3OI1sUNIYv84nM3reiirf0AuozG5ZzLCmn4Rw=";
10 };
11
12 buildFlags = [
13 "all"
14 "opt"
15 ];
16 nativeBuildInputs = [
17 findlib
18 ocaml
19 ocamlbuild
20 pkg-config
21 ];
22 buildInputs = [
23 glib
24 perl
25 stdlib-shims
26 ];
27 propagatedBuildInputs = [
28 extlib
29 ];
30
31 checkTarget = [
32 "all"
33 "test"
34 ];
35 checkInputs = [
36 ounit
37 ];
38 doCheck = true;
39
40 preInstall = "mkdir -p $OCAMLFIND_DESTDIR";
41 installFlags = [ "BINDIR=$(out)/bin" ];
42
43 meta = with lib; {
44 description = "A library for CUDF format";
45 homepage = "https://www.mancoosi.org/cudf/";
46 downloadPage = "https://gforge.inria.fr/projects/cudf/";
47 license = licenses.lgpl3;
48 maintainers = with maintainers; [ ];
49 };
50}