Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #15833 from FlorentBecker/eliom5

Update the Eliom ecosystem to 2016-01

vbgl c3b791f1 8cb37c15

+82 -57
+3 -15
pkgs/development/ocaml-modules/eliom/camlp4.patch
··· 1 1 --- a/src/_tags 2014-10-01 16:19:35.000000000 +0100 2 2 +++ b/src/_tags 2014-11-09 16:55:34.470663377 +0000 3 - @@ -39,7 +39,7 @@ 3 + @@ -40,7 +40,7 @@ 4 4 <lib/server/monitor/*.ml{,i}>:I(src/lib/server) 5 5 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) 7 7 -<syntax/pa_*.ml{,i}>: I(+camlp4/Camlp4Parsers) 8 8 +<syntax/pa_*.ml{,i}>: use_camlp4_full 9 9 10 + <ppx/**/*>: package(ppx_tools, compiler-libs.common, ppx_tools.metaquot) 10 11 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)) 24 12
+15 -9
pkgs/development/ocaml-modules/eliom/default.nix
··· 1 1 { stdenv, fetchurl, ocaml, findlib, which, ocsigen_server, ocsigen_deriving, 2 2 js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml, 3 3 ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp, 4 - reactivedata, opam}: 4 + reactivedata, opam, ppx_tools, camlp4}: 5 5 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"; 7 11 8 12 stdenv.mkDerivation rec 9 13 { 10 14 pname = "eliom"; 11 - version = "4.2.0"; 15 + version = "5.0.0"; 12 16 name = "${pname}-${version}"; 13 17 14 18 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"; 17 21 }; 18 22 19 23 patches = [ ./camlp4.patch ]; 20 24 21 25 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 ]; 23 27 24 28 propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr 25 29 calendar cryptokit ocamlnet ocaml_react ocaml_ssl 26 30 ocaml_pcre ]; 27 31 32 + preConfigure = stdenv.lib.optionalString (!stdenv.lib.versionAtLeast ocamlVersion "4.02") '' 33 + export PPX=false 34 + ''; 35 + 28 36 installPhase = 29 - let ocamlVersion = (builtins.parseDrvName (ocaml.name)).version; 30 - in 31 37 ''opam-installer --script --prefix=$out ${pname}.install > install.sh 32 38 sh install.sh 33 39 ln -s $out/lib/${pname} $out/lib/ocaml/${ocamlVersion}/site-lib/ ··· 55 61 56 62 maintainers = [ stdenv.lib.maintainers.gal_bolle ]; 57 63 }; 58 - } 64 + })
+31
pkgs/development/ocaml-modules/markup/default.nix
··· 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 + }
+3 -3
pkgs/development/ocaml-modules/ocsigen-server/default.nix
··· 9 9 in 10 10 11 11 stdenv.mkDerivation { 12 - name = "ocsigenserver-2.6"; 12 + name = "ocsigenserver-2.7"; 13 13 14 14 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"; 17 17 }; 18 18 19 19 buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt
+3 -3
pkgs/development/ocaml-modules/ppx_tools/default.nix
··· 1 1 { stdenv, fetchzip, ocaml, findlib }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "ocaml-ppx_tools-4.02.3"; 4 + name = "ocaml-ppx_tools-5.0+4.02"; 5 5 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"; 8 8 }; 9 9 10 10 buildInputs = [ ocaml findlib ];
+2 -2
pkgs/development/ocaml-modules/re/default.nix
··· 1 1 { stdenv, fetchzip, ocaml, findlib, ounit }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "ocaml-re-1.4.1"; 4 + name = "ocaml-re-1.5.0"; 5 5 6 6 src = fetchzip { 7 7 url = "https://github.com/ocaml/ocaml-re/archive/${name}.tar.gz"; 8 - sha256 = "1wmfgazydd20hc796zisqpmsw0sb5lv9g3x77ckmf50v3z8hyhvk"; 8 + sha256 = "17avk7kwmgdjkri1sj5q4a59ykc9rj0bxj6ixxpl6i0n49br3f92"; 9 9 }; 10 10 11 11 buildInputs = [ ocaml findlib ounit ];
+2 -2
pkgs/development/ocaml-modules/react/default.nix
··· 1 1 {stdenv, fetchurl, ocaml, findlib, opam}: 2 2 3 3 stdenv.mkDerivation { 4 - name = "ocaml-react-1.1.0"; 4 + name = "ocaml-react-1.2.0"; 5 5 6 6 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; 8 8 sha256 = "1gymn8hy7ga0l9qymmb1jcnnkqvy7l2zr87xavzqz0dfi9ci8dm7"; 9 9 }; 10 10
+6 -6
pkgs/development/ocaml-modules/reactivedata/default.nix
··· 1 - {stdenv, fetchurl, ocaml, findlib, ocaml_react, opam}: 1 + {stdenv, fetchurl, ocaml, findlib, ocaml_react, camlp4, opam}: 2 2 3 3 let 4 4 ocamlVersion = stdenv.lib.getVersion ocaml; ··· 7 7 assert stdenv.lib.versionAtLeast ocamlVersion "3.11"; 8 8 9 9 stdenv.mkDerivation { 10 - name = "ocaml-reactiveData-0.1"; 10 + name = "ocaml-reactiveData-0.2"; 11 11 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"; 14 14 }; 15 15 16 - buildInputs = [ocaml findlib opam]; 16 + buildInputs = [ocaml findlib opam camlp4 ]; 17 17 propagatedBuildInputs = [ocaml_react]; 18 18 19 19 buildPhase = "ocaml pkg/build.ml native=true native-dynlink=true"; ··· 26 26 27 27 meta = with stdenv.lib; { 28 28 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; 30 30 license = licenses.lgpl21; 31 31 platforms = ocaml.meta.platforms or []; 32 32 maintainers = with maintainers; [ vbgl ];
+11 -7
pkgs/development/ocaml-modules/tyxml/default.nix
··· 1 - { stdenv, fetchurl, ocaml, findlib, ocaml_oasis, camlp4, uutf }: 1 + { stdenv, fetchurl, ocaml, findlib, ocaml_oasis, camlp4, uutf, markup, ppx_tools, re }: 2 2 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}"; 5 7 6 8 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"; 9 11 }; 10 12 11 - buildInputs = [ocaml findlib ocaml_oasis camlp4]; 13 + buildInputs = [ocaml findlib camlp4]; 12 14 13 - propagatedBuildInputs = [uutf]; 15 + propagatedBuildInputs = [uutf re ppx_tools markup]; 14 16 15 17 createFindlibDestdir = true; 18 + 19 + configureFlags = "--enable-syntax"; 16 20 17 21 meta = with stdenv.lib; { 18 22 homepage = http://ocsigen.org/tyxml/;
+4 -10
pkgs/development/tools/ocaml/js_of_ocaml/default.nix
··· 1 1 {stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, camlp4, 2 2 cmdliner, tyxml, reactivedata, cppo, which, base64}: 3 3 4 - let camlp4_patch = fetchurl { 5 - url = "https://github.com/FlorentBecker/js_of_ocaml/commit/3b511c5bb777d5049c49d7a04c01f142de7096b9.patch"; 6 - sha256 = "c92eda8be504cd41eb242166fc815af496243b63d4d21b169f5b62ec5ace2d39"; 7 - }; 8 - in 9 - 10 4 stdenv.mkDerivation { 11 - name = "js_of_ocaml-2.6"; 5 + name = "js_of_ocaml-2.7"; 12 6 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"; 15 9 }; 16 10 17 11 buildInputs = [ocaml findlib menhir ocsigen_deriving 18 12 cmdliner tyxml reactivedata cppo which base64]; 19 13 propagatedBuildInputs = [ ocaml_lwt camlp4 ]; 20 14 21 - patches = [ ./Makefile.conf.diff camlp4_patch ]; 15 + patches = [ ./Makefile.conf.diff ]; 22 16 23 17 createFindlibDestdir = true; 24 18
+2
pkgs/top-level/all-packages.nix
··· 5009 5009 5010 5010 magick = callPackage ../development/ocaml-modules/magick { }; 5011 5011 5012 + markup = callPackage ../development/ocaml-modules/markup { lwt = ocaml_lwt; }; 5013 + 5012 5014 menhir = callPackage ../development/ocaml-modules/menhir { }; 5013 5015 5014 5016 merlin = callPackage ../development/tools/ocaml/merlin { };