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