1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
2
3stdenv.mkDerivation rec {
4 name = "ocamlmod-${version}";
5 version = "0.0.9";
6
7 src = fetchurl {
8 url = "https://forge.ocamlcore.org/frs/download.php/1702/ocamlmod-0.0.9.tar.gz";
9 sha256 = "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa";
10 };
11
12 buildInputs = [ ocaml findlib ocamlbuild ounit ];
13
14 configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
15 buildPhase = "ocaml setup.ml -build";
16 installPhase = "ocaml setup.ml -install";
17
18 doCheck = true;
19
20 checkPhase = "ocaml setup.ml -test";
21
22 dontStrip = true;
23
24 meta = {
25 homepage = http://forge.ocamlcore.org/projects/ocamlmod/ocamlmod;
26 description = "Generate OCaml modules from source files";
27 platforms = ocaml.meta.platforms or [];
28 maintainers = with stdenv.lib.maintainers; [
29 z77z
30 ];
31 };
32}