git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19765 from FlorentBecker/some_buildOcaml

Update various packages to use buildOcaml, with fixes

commit6f12fb74036880e1edc6f4fee95de6a983038adf authorMichael Raskin <7c6f434c@mail.ru> dateFri 30 Dec 2016, 20:47 (10 years ago) parentb1ac86dac69382
3 files changed+21−27
pkgs/development/ocaml-modules/eliom/default.nix+9−17 pkgs/development/ocaml-modules/pgocaml/default.nix+10−8 pkgs/development/tools/ocaml/js_of_ocaml/default.nix+2−2
pkgs/development/ocaml-modules/eliom/default.nix+9−17
@@ -1,15 +1,10 @@
1−{ stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving,
1+{ buildOcaml, stdenv, fetchurl, which, ocsigen_server, ocsigen_deriving, ocaml,
22 js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
33 ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
4− reactivedata, opam, ppx_tools, camlp4}:
4+ reactivedata, opam, ppx_tools, ppx_deriving, camlp4}:
55
6−let ocamlVersion = (stdenv.lib.getVersion ocaml);
7− in
8−
9−(
10−assert stdenv.lib.versionAtLeast ocamlVersion "4";
11−
12−stdenv.mkDerivation rec
6+let ocamlVersion = (stdenv.lib.getVersion ocaml); in
7+buildOcaml rec
138{
149 pname = "eliom";
1510 version = "5.0.0";
@@ -22,12 +17,11 @@ stdenv.mkDerivation rec
2217
2318 patches = [ ./camlp4.patch ];
2419
25− buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving
26− js_of_ocaml ocaml_optcomp opam ppx_tools camlp4 ];
20+ buildInputs = [ which ocaml_optcomp opam ppx_tools camlp4 ];
2721
28− propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr
29− calendar cryptokit ocamlnet ocaml_react ocaml_ssl
30− ocaml_pcre ];
22+ propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr ocsigen_server ppx_deriving
23+ ocsigen_deriving js_of_ocaml
24+ calendar cryptokit ocamlnet ocaml_react ocaml_ssl ocaml_pcre ];
3125
3226 preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") ''
3327 export PPX=false
@@ -57,8 +51,6 @@ stdenv.mkDerivation rec
5751
5852 license = stdenv.lib.licenses.lgpl21;
5953
60− platforms = ocaml.meta.platforms or [];
61−
6254 maintainers = [ stdenv.lib.maintainers.gal_bolle ];
6355 };
64−})
56+}
pkgs/development/ocaml-modules/pgocaml/default.nix+10−8
@@ -1,14 +1,17 @@
1−{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, camlp4, calendar, csv, ocaml_pcre }:
1+{ stdenv, fetchurl, buildOcaml, calendar, csv, re }:
22
3−stdenv.mkDerivation {
4− name = "ocaml-pgocaml-2.2";
3+buildOcaml {
4+ name = "pgocaml";
5+ version = "2.3";
56 src = fetchurl {
6− url = http://forge.ocamlcore.org/frs/download.php/1506/pgocaml-2.2.tgz;
7− sha256 = "0x0dhlz2rqxpwfdqi384f9fn0ng2irifadmxfm2b4gcz7y1cl9rh";
7+ url = https://github.com/darioteixeira/pgocaml/archive/v2.3.tar.gz;
8+ sha256 = "18lymxlvcf4nwxawkidq3pilsp5rhl0l8ifq6pjk3ssjlx9w53pg";
89 };
910
10− buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
11− propagatedBuildInputs = [ calendar csv ocaml_pcre ];
11+ buildInputs = [ ];
12+ propagatedBuildInputs = [ calendar csv re ];
13+
14+ configureFlags = [ "--enable-p4" ];
1215
1316 createFindlibDestdir = true;
1417
@@ -16,7 +19,6 @@ stdenv.mkDerivation {
1619 description = "An interface to PostgreSQL databases for OCaml applications";
1720 homepage = http://pgocaml.forge.ocamlcore.org/;
1821 license = licenses.lgpl2;
19− platforms = ocaml.meta.platforms or [];
2022 maintainers = with maintainers; [ vbgl ];
2123 };
2224}
pkgs/development/tools/ocaml/js_of_ocaml/default.nix+2−2
@@ -8,9 +8,9 @@ stdenv.mkDerivation {
88 sha256 = "1dali1akyd4zmkwav0d957ynxq2jj6cc94r4xiaql7ca89ajz4jj";
99 };
1010
11− buildInputs = [ ocaml findlib menhir ocsigen_deriving ppx_deriving
11+ buildInputs = [ ocaml findlib menhir ocsigen_deriving
1212 cmdliner tyxml reactivedata cppo which base64];
13− propagatedBuildInputs = [ ocaml_lwt camlp4 ];
13+ propagatedBuildInputs = [ ocaml_lwt camlp4 ppx_deriving ];
1414
1515 patches = [ ./Makefile.conf.diff ];
1616