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

Update the Eliom ecosystem to 2016-01

commitc3b791f15b5fa88d92084d072e32cdf976b034ca authorvbgl <vbgl@users.noreply.github.com> dateSat 4 Jun 2016, 14:08 (10 years ago) parent8cb37c17395020
11 files changed+82−57
pkgs/development/ocaml-modules/eliom/camlp4.patch+3−15 pkgs/development/ocaml-modules/eliom/default.nix+15−9 pkgs/development/ocaml-modules/markup/default.nix+31 pkgs/development/ocaml-modules/ocsigen-server/default.nix+3−3 pkgs/development/ocaml-modules/ppx_tools/default.nix+3−3 pkgs/development/ocaml-modules/re/default.nix+2−2 pkgs/development/ocaml-modules/react/default.nix+2−2 pkgs/development/ocaml-modules/reactivedata/default.nix+6−6 pkgs/development/ocaml-modules/tyxml/default.nix+11−7 pkgs/development/tools/ocaml/js_of_ocaml/default.nix+4−10 pkgs/top-level/all-packages.nix+2
pkgs/development/ocaml-modules/eliom/camlp4.patch+3−15
@@ -1,24 +1,12 @@
11--- a/src/_tags 2014-10-01 16:19:35.000000000 +0100
22+++ b/src/_tags 2014-11-09 16:55:34.470663377 +0000
3−@@ -39,7 +39,7 @@
3+@@ -40,7 +40,7 @@
44 <lib/server/monitor/*.ml{,i}>:I(src/lib/server)
55
6− <syntax/pa_*.ml{,i}>: syntax(camlp4o),package(camlp4.quotations.o,camlp4.extend)
6+ <syntax/pa_*.*>: syntax(camlp4o),package(camlp4.quotations.o,camlp4.extend,bytes)
77-<syntax/pa_*.ml{,i}>: I(+camlp4/Camlp4Parsers)
88+<syntax/pa_*.ml{,i}>: use_camlp4_full
99
10+ <ppx/**/*>: package(ppx_tools, compiler-libs.common, ppx_tools.metaquot)
1011
11− <ocamlbuild/ocamlbuild_eliom.ml{,i}>: package(ocamlbuild,js_of_ocaml.ocamlbuild)
12−
13−--- a/src/lib/eliom_registration.server.ml 2014-10-01 16:19:35.000000000 +0100
14−+++ b/src/lib/eliom_registration.server.ml 2014-11-09 17:26:16.093198699 +0000
15−@@ -2440,7 +2440,7 @@
16− (Ocaml.register_post_coservice'
17− ?scope ?options ?charset ?code ?content_type ?headers ?secure_session ?name
18− ?csrf_safe ?csrf_scope ?csrf_secure ?max_use ?timeout ?https ?error_handler
19−- ~post_params:Eliom_parameter.(ocaml "argument" argument_type)
20−+ ~post_params:(Eliom_parameter.ocaml "argument" argument_type)
21− (fun () argument -> f argument))
22− (Eliom_wrap.create_unwrapper
23− (Eliom_wrap.id_of_int Eliom_common_base.server_function_unwrap_id_int))
2412
pkgs/development/ocaml-modules/eliom/default.nix+15−9
@@ -1,33 +1,39 @@
11{ stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving,
22 js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
33 ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
4− reactivedata, opam}:
4+ reactivedata, opam, ppx_tools, camlp4}:
55
6−assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4";
6+let ocamlVersion = (stdenv.lib.getVersion ocaml);
7+ in
8+
9+(
10+assert stdenv.lib.versionAtLeast ocamlVersion "4";
711
812stdenv.mkDerivation rec
913{
1014 pname = "eliom";
11− version = "4.2.0";
15+ version = "5.0.0";
1216 name = "${pname}-${version}";
1317
1418 src = fetchurl {
15− url = https://github.com/ocsigen/eliom/archive/4.2.tar.gz;
16− sha256 = "0gbqzgn6xgpq6irz2sfr92qj3hjcwl45wy0inc4ps5r15nvq1l9h";
19+ url = "https://github.com/ocsigen/eliom/archive/${version}.tar.gz";
20+ sha256 = "1g9wq2qpn0sgzyb6iq0h9afq5p68il4h8pc7jppqsislk87m09k7";
1721 };
1822
1923 patches = [ ./camlp4.patch ];
2024
2125 buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving
22− js_of_ocaml ocaml_optcomp opam];
26+ js_of_ocaml ocaml_optcomp opam ppx_tools camlp4 ];
2327
2428 propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr
2529 calendar cryptokit ocamlnet ocaml_react ocaml_ssl
2630 ocaml_pcre ];
2731
32+ preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") ''
33+ export PPX=false
34+ '';
35+
2836 installPhase =
29− let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version;
30− in
3137 ''opam-installer --script --prefix=$out ${pname}.install > install.sh
3238 sh install.sh
3339 ln -s $out/lib/${pname} $out/lib/ocaml/${ocamlVersion}/site-lib/
@@ -55,4 +61,4 @@ stdenv.mkDerivation rec
5561
5662 maintainers = [ stdenv.lib.maintainers.gal_bolle ];
5763 };
58−}
64+})
pkgs/development/ocaml-modules/markup/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{ stdenv, fetchurl, ocaml, findlib, uutf, lwt }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "ocaml-markup";
5+ version = "0.7.2";
6+ name = "${pname}-${version}";
7+
8+ src = fetchurl {
9+ url = "http://github.com/aantron/markup.ml/archive/${version}.tar.gz";
10+ sha256 = "0d3wi22v7h0iqzq8dgl0g4fj2wb67gvmbzdckacifghinrx762k3";
11+ };
12+
13+ buildInputs = [ocaml findlib];
14+
15+ installPhase = "make ocamlfind-install";
16+
17+ propagatedBuildInputs = [uutf lwt];
18+
19+ createFindlibDestdir = true;
20+
21+ meta = with stdenv.lib; {
22+ homepage = https://github.com/aantron/markup.ml/;
23+ description = "A pair of best-effort parsers implementing the HTML5 and XML specifications";
24+ license = licenses.bsd2;
25+ platforms = ocaml.meta.platforms or [];
26+ maintainers = with maintainers; [
27+ gal_bolle
28+ ];
29+ };
30+
31+}
pkgs/development/ocaml-modules/ocsigen-server/default.nix+3−3
@@ -9,11 +9,11 @@ let mkpath = p: n:
99in
1010
1111stdenv.mkDerivation {
12− name = "ocsigenserver-2.6";
12+ name = "ocsigenserver-2.7";
1313
1414 src = fetchurl {
15− url = https://github.com/ocsigen/ocsigenserver/archive/2.6.tar.gz;
16− sha256 = "0638xvlr0sssvjarmdwhgh7vbgdx8wiyjwq73w1bkjfwl7qm21zp";
15+ url = https://github.com/ocsigen/ocsigenserver/archive/2.7.tar.gz;
16+ sha256 = "0gv9nchsx9z74hh46gn7bd0053j4694fhxriannf13sqh2qpg901";
1717 };
1818
1919 buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt
pkgs/development/ocaml-modules/ppx_tools/default.nix+3−3
@@ -1,10 +1,10 @@
11{ stdenv, fetchzip, ocaml, findlib }:
22
33stdenv.mkDerivation {
4− name = "ocaml-ppx_tools-4.02.3";
4+ name = "ocaml-ppx_tools-5.0+4.02";
55 src = fetchzip {
6− url = https://github.com/alainfrisch/ppx_tools/archive/v4.02.3.tar.gz;
7− sha256 = "0varkd93hgrarwwkrjp2yy735q7jqzba75sskyanmvkb576wpcxv";
6+ url = https://github.com/alainfrisch/ppx_tools/archive/5.0+4.02.0.tar.gz;
7+ sha256 = "16drjk0qafjls8blng69qiv35a84wlafpk16grrg2i3x19p8dlj8";
88 };
99
1010 buildInputs = [ ocaml findlib ];
pkgs/development/ocaml-modules/re/default.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, fetchzip, ocaml, findlib, ounit }:
22
33stdenv.mkDerivation rec {
4− name = "ocaml-re-1.4.1";
4+ name = "ocaml-re-1.5.0";
55
66 src = fetchzip {
77 url = "https://github.com/ocaml/ocaml-re/archive/${name}.tar.gz";
8− sha256 = "1wmfgazydd20hc796zisqpmsw0sb5lv9g3x77ckmf50v3z8hyhvk";
8+ sha256 = "17avk7kwmgdjkri1sj5q4a59ykc9rj0bxj6ixxpl6i0n49br3f92";
99 };
1010
1111 buildInputs = [ ocaml findlib ounit ];
pkgs/development/ocaml-modules/react/default.nix+2−2
@@ -1,10 +1,10 @@
11{stdenv, fetchurl, ocaml, findlib, opam}:
22
33stdenv.mkDerivation {
4− name = "ocaml-react-1.1.0";
4+ name = "ocaml-react-1.2.0";
55
66 src = fetchurl {
7− url = http://erratique.ch/software/react/releases/react-1.1.0.tbz;
7+ url = http://erratique.ch/software/react/releases/react-1.2.0.tbz;
88 sha256 = "1gymn8hy7ga0l9qymmb1jcnnkqvy7l2zr87xavzqz0dfi9ci8dm7";
99 };
1010
pkgs/development/ocaml-modules/reactivedata/default.nix+6−6
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, ocaml, findlib, ocaml_react, opam}:
1+{stdenv, fetchurl, ocaml, findlib, ocaml_react, camlp4, opam}:
22
33let
44 ocamlVersion = stdenv.lib.getVersion ocaml;
@@ -7,13 +7,13 @@ in
77assert stdenv.lib.versionAtLeast ocamlVersion "3.11";
88
99stdenv.mkDerivation {
10− name = "ocaml-reactiveData-0.1";
10+ name = "ocaml-reactiveData-0.2";
1111 src = fetchurl {
12− url = https://github.com/hhugo/reactiveData/archive/0.1.tar.gz;
13− sha256 = "056y9in6j6rpggdf8apailvs1m30wxizpyyrj08xyfxgv91mhxgw";
12+ url = https://github.com/ocsigen/reactiveData/archive/0.2.tar.gz;
13+ sha256 = "0rskcxnyjn8sxqnncdm6rh9wm99nha5m5sc83fywgzs64xfl43fq";
1414 };
1515
16− buildInputs = [ocaml findlib opam];
16+ buildInputs = [ocaml findlib opam camlp4 ];
1717 propagatedBuildInputs = [ocaml_react];
1818
1919 buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true";
@@ -26,7 +26,7 @@ stdenv.mkDerivation {
2626
2727 meta = with stdenv.lib; {
2828 description = "An OCaml module for functional reactive programming (FRP) based on React";
29− homepage = https://github.com/hhugo/reactiveData;
29+ homepage = https://github.com/ocsigen/reactiveData;
3030 license = licenses.lgpl21;
3131 platforms = ocaml.meta.platforms or [];
3232 maintainers = with maintainers; [ vbgl ];
pkgs/development/ocaml-modules/tyxml/default.nix+11−7
@@ -1,19 +1,23 @@
1−{ stdenv, fetchurl, ocaml, findlib, ocaml_oasis, camlp4, uutf }:
1+{ stdenv, fetchurl, ocaml, findlib, ocaml_oasis, camlp4, uutf, markup, ppx_tools, re }:
22
3−stdenv.mkDerivation {
4− name = "tyxml-3.4.0";
3+stdenv.mkDerivation rec {
4+ pname = "tyxml";
5+ version = "3.6.0";
6+ name = "${pname}-${version}";
57
68 src = fetchurl {
7− url = http://github.com/ocsigen/tyxml/archive/3.4.0.tar.gz;
8− sha256 = "10hb0b2j33fjqzmx450ns7dmf4pqmx3gyvr6dk99mghqk13cj5ww";
9+ url = "http://github.com/ocsigen/tyxml/archive/${version}.tar.gz";
10+ sha256 = "1rz0f48x8p1m30723rn5v85pp7rd0spr04sd7gzryy99vn3ianga";
911 };
1012
11− buildInputs = [ocaml findlib ocaml_oasis camlp4];
13+ buildInputs = [ocaml findlib camlp4];
1214
13− propagatedBuildInputs = [uutf];
15+ propagatedBuildInputs = [uutf re ppx_tools markup];
1416
1517 createFindlibDestdir = true;
1618
19+ configureFlags = "--enable-syntax";
20+
1721 meta = with stdenv.lib; {
1822 homepage = http://ocsigen.org/tyxml/;
1923 description = "A library that makes it almost impossible for your OCaml programs to generate wrong XML output, using static typing";
pkgs/development/tools/ocaml/js_of_ocaml/default.nix+4−10
@@ -1,24 +1,18 @@
11{stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, camlp4,
22 cmdliner, tyxml, reactivedata, cppo, which, base64}:
33
4−let camlp4_patch = fetchurl {
5− url = "https://github.com/FlorentBecker/js_of_ocaml/commit/3b511c5bb777d5049c49d7a04c01f142de7096b9.patch";
6− sha256 = "c92eda8be504cd41eb242166fc815af496243b63d4d21b169f5b62ec5ace2d39";
7− };
8−in
9−
104stdenv.mkDerivation {
11− name = "js_of_ocaml-2.6";
5+ name = "js_of_ocaml-2.7";
126 src = fetchurl {
13− url = https://github.com/ocsigen/js_of_ocaml/archive/2.6.tar.gz;
14− sha256 = "0q34lrn70dvz41m78bwgriyq6dxk97g8gcyg80nvxii4jp86dw61";
7+ url = https://github.com/ocsigen/js_of_ocaml/archive/2.7.tar.gz;
8+ sha256 = "1dali1akyd4zmkwav0d957ynxq2jj6cc94r4xiaql7ca89ajz4jj";
159 };
1610
1711 buildInputs = [ocaml findlib menhir ocsigen_deriving
1812 cmdliner tyxml reactivedata cppo which base64];
1913 propagatedBuildInputs = [ ocaml_lwt camlp4 ];
2014
21− patches = [ ./Makefile.conf.diff camlp4_patch ];
15+ patches = [ ./Makefile.conf.diff ];
2216
2317 createFindlibDestdir = true;
2418
pkgs/top-level/all-packages.nix+2
@@ -5009,6 +5009,8 @@ in
50095009
50105010 magick = callPackage ../development/ocaml-modules/magick { };
50115011
5012+ markup = callPackage ../development/ocaml-modules/markup { lwt = ocaml_lwt; };
5013+
50125014 menhir = callPackage ../development/ocaml-modules/menhir { };
50135015
50145016 merlin = callPackage ../development/tools/ocaml/merlin { };