Merge pull request #19765 from FlorentBecker/some_buildOcaml

Update various packages to use buildOcaml, with fixes
This commit is contained in:
Michael Raskin 2016-12-30 20:47:50 +00:00 committed by GitHub
commit 6f12fb7403
3 changed files with 21 additions and 27 deletions

View File

@ -1,15 +1,10 @@
{ stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving, { buildOcaml, stdenv, fetchurl, which, ocsigen_server, ocsigen_deriving, ocaml,
js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml, js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp, ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
reactivedata, opam, ppx_tools, camlp4}: reactivedata, opam, ppx_tools, ppx_deriving, camlp4}:
let ocamlVersion = (stdenv.lib.getVersion ocaml); let ocamlVersion = (stdenv.lib.getVersion ocaml); in
in buildOcaml rec
(
assert stdenv.lib.versionAtLeast ocamlVersion "4";
stdenv.mkDerivation rec
{ {
pname = "eliom"; pname = "eliom";
version = "5.0.0"; version = "5.0.0";
@ -22,12 +17,11 @@ stdenv.mkDerivation rec
patches = [ ./camlp4.patch ]; patches = [ ./camlp4.patch ];
buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving buildInputs = [ which ocaml_optcomp opam ppx_tools camlp4 ];
js_of_ocaml ocaml_optcomp opam ppx_tools camlp4 ];
propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr ocsigen_server ppx_deriving
calendar cryptokit ocamlnet ocaml_react ocaml_ssl ocsigen_deriving js_of_ocaml
ocaml_pcre ]; calendar cryptokit ocamlnet ocaml_react ocaml_ssl ocaml_pcre ];
preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") '' preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") ''
export PPX=false export PPX=false
@ -57,8 +51,6 @@ stdenv.mkDerivation rec
license = stdenv.lib.licenses.lgpl21; license = stdenv.lib.licenses.lgpl21;
platforms = ocaml.meta.platforms or [];
maintainers = [ stdenv.lib.maintainers.gal_bolle ]; maintainers = [ stdenv.lib.maintainers.gal_bolle ];
}; };
}) }

View File

@ -1,14 +1,17 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, camlp4, calendar, csv, ocaml_pcre }: { stdenv, fetchurl, buildOcaml, calendar, csv, re }:
stdenv.mkDerivation { buildOcaml {
name = "ocaml-pgocaml-2.2"; name = "pgocaml";
version = "2.3";
src = fetchurl { src = fetchurl {
url = http://forge.ocamlcore.org/frs/download.php/1506/pgocaml-2.2.tgz; url = https://github.com/darioteixeira/pgocaml/archive/v2.3.tar.gz;
sha256 = "0x0dhlz2rqxpwfdqi384f9fn0ng2irifadmxfm2b4gcz7y1cl9rh"; sha256 = "18lymxlvcf4nwxawkidq3pilsp5rhl0l8ifq6pjk3ssjlx9w53pg";
}; };
buildInputs = [ ocaml findlib ocamlbuild camlp4 ]; buildInputs = [ ];
propagatedBuildInputs = [ calendar csv ocaml_pcre ]; propagatedBuildInputs = [ calendar csv re ];
configureFlags = [ "--enable-p4" ];
createFindlibDestdir = true; createFindlibDestdir = true;
@ -16,7 +19,6 @@ stdenv.mkDerivation {
description = "An interface to PostgreSQL databases for OCaml applications"; description = "An interface to PostgreSQL databases for OCaml applications";
homepage = http://pgocaml.forge.ocamlcore.org/; homepage = http://pgocaml.forge.ocamlcore.org/;
license = licenses.lgpl2; license = licenses.lgpl2;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [ vbgl ]; maintainers = with maintainers; [ vbgl ];
}; };
} }

View File

@ -8,9 +8,9 @@ stdenv.mkDerivation {
sha256 = "1dali1akyd4zmkwav0d957ynxq2jj6cc94r4xiaql7ca89ajz4jj"; sha256 = "1dali1akyd4zmkwav0d957ynxq2jj6cc94r4xiaql7ca89ajz4jj";
}; };
buildInputs = [ ocaml findlib menhir ocsigen_deriving ppx_deriving buildInputs = [ ocaml findlib menhir ocsigen_deriving
cmdliner tyxml reactivedata cppo which base64]; cmdliner tyxml reactivedata cppo which base64];
propagatedBuildInputs = [ ocaml_lwt camlp4 ]; propagatedBuildInputs = [ ocaml_lwt camlp4 ppx_deriving ];
patches = [ ./Makefile.conf.diff ]; patches = [ ./Makefile.conf.diff ];