1{stdenv, fetchurl, ocaml, findlib, camlp4, minimal ? true}:
2
3assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
4
5stdenv.mkDerivation {
6 name = "ocaml-extlib-1.6.1";
7
8 src = fetchurl {
9 url = http://ocaml-extlib.googlecode.com/files/extlib-1.6.1.tar.gz;
10 sha256 = "1jmfj2w0f3ap0swz8k3qqmrl6x2y4gkmg88vv024xnmliiiv7m48";
11 };
12
13 buildInputs = [ocaml findlib camlp4];
14
15 createFindlibDestdir = true;
16
17 configurePhase = "true"; # Skip configure
18 # De facto, option minimal=1 seems to be the default. See the README.
19 buildPhase = "make ${if minimal then "minimal=1" else ""} build";
20 installPhase = "make ${if minimal then "minimal=1" else ""} install";
21
22 meta = {
23 homepage = http://code.google.com/p/ocaml-extlib/;
24 description = "Enhancements to the OCaml Standard Library modules";
25 license = stdenv.lib.licenses.lgpl21;
26 platforms = ocaml.meta.platforms;
27 };
28}