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