{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";
  };

  buildInputs = [ocaml findlib];

  createFindlibDestdir = true;

  configurePhase = "true";

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

{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";
  };

  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;
  };
}

Fix of the ocaml extlib expression. The native object files were not installed. Turns out that also the 'opt' make target must be run besides 'all'.
Fix of the ocaml extlib expression. The native object files were not installed. Turns out that also the 'opt' make target must be run besides 'all'.

svn path=/nixpkgs/trunk/; revision=33350
