1{ stdenv, fetchurl, ocaml, findlib, cppo, minimal ? true }:
2
3assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "3.11";
4
5stdenv.mkDerivation {
6 name = "ocaml-extlib-1.7.2";
7
8 src = fetchurl {
9 url = http://ygrek.org.ua/p/release/ocaml-extlib/extlib-1.7.2.tar.gz;
10 sha256 = "0r7mhfgh6n5chj9r12s2x1fxrzvh6nm8h80ykl1mr75j86za41bm";
11 };
12
13 buildInputs = [ ocaml findlib cppo ];
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 = https://github.com/ygrek/ocaml-extlib;
24 description = "Enhancements to the OCaml Standard Library modules";
25 license = stdenv.lib.licenses.lgpl21;
26 platforms = ocaml.meta.platforms or [];
27 };
28}