lol
1{stdenv, fetchurl, ocaml, findlib}:
2
3stdenv.mkDerivation {
4 name = "ocamlmod-0.0.7";
5
6 src = fetchurl {
7 url = http://forge.ocamlcore.org/frs/download.php/1350/ocamlmod-0.0.7.tar.gz;
8 sha256 = "11kg7wh0gy492ma5c6bcjh6frv1a9lh9f26hiys2i0d1ky8s0ad3";
9 };
10
11 buildInputs = [ocaml findlib];
12
13 configurePhase = "ocaml setup.ml -configure --prefix $out";
14 buildPhase = "ocaml setup.ml -build";
15 installPhase = "ocaml setup.ml -install";
16
17 meta = {
18 homepage = http://forge.ocamlcore.org/projects/ocamlmod/ocamlmod;
19 description = "Generate OCaml modules from source files";
20 platforms = ocaml.meta.platforms;
21 maintainers = with stdenv.lib.maintainers; [
22 z77z
23 ];
24 };
25}