summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/extlib/default.nix
blob: a520f8196d8ab2b614a6bc4ac828471201d8f55d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, ocaml, findlib}:

stdenv.mkDerivation {
  name = "ocaml-extlib-1.5.2";

  src = fetchurl {
    url = "http://ocaml-extlib.googlecode.com/files/extlib-1.5.2.tar.gz";
    sha256 = "ca6d69adeba4242ce41c02a23746ba1e464c0bbec66e2d16b02c3c6e85dc10aa";
  };

  patches = [ ./hashtable-ocaml4-compat.patch ];
  buildInputs = [ocaml findlib];

  createFindlibDestdir = true;

  buildPhase = ''
    make all
    make opt
  '';

  meta = {
    homepage = "http://code.google.com/p/ocaml-extlib/";
    description = "Enhancements to the OCaml Standard Library modules";
    license = "LGPL";
    platforms = ocaml.meta.platforms;
  };
}