lol

ocamlPackages.ocsigen_server: 5.0.1 → 5.1.0

ocamlPackages.eliom: 9.4.0 → 10.1.0

ocamlPackages.ocsigen-start: 6.0.1 → 6.1.0

+12 -44
+4 -2
pkgs/development/ocaml-modules/eliom/default.nix
··· 8 8 , opaline 9 9 , ocamlbuild 10 10 , ppx_deriving 11 + , ppx_optcomp 11 12 , findlib 12 13 , js_of_ocaml-ocamlbuild 13 14 , js_of_ocaml-ppx ··· 21 22 22 23 stdenv.mkDerivation rec { 23 24 pname = "eliom"; 24 - version = "9.4.0"; 25 + version = "10.1.0"; 25 26 26 27 src = fetchFromGitHub { 27 28 owner = "ocsigen"; 28 29 repo = "eliom"; 29 30 rev = version; 30 - sha256 = "sha256:1yn8mqxv9yz51x81j8wv1jn7l7crm8azp1m2g4zn5nz2s4nmfv6q"; 31 + hash = "sha256-nzrLl8adaRW6c+IQfJ7s+7KtFT8uU27Umyrv0aWXuxw="; 31 32 }; 32 33 33 34 nativeBuildInputs = [ ··· 41 42 js_of_ocaml-ocamlbuild 42 43 js_of_ocaml-ppx_deriving_json 43 44 ocamlnet 45 + ppx_optcomp 44 46 ]; 45 47 46 48 propagatedBuildInputs = [
-31
pkgs/development/ocaml-modules/ocsigen-server/cohttp-5.patch
··· 1 - diff --git a/src/server/ocsigen_cohttp.ml b/src/server/ocsigen_cohttp.ml 2 - index 4363cff7..b0cc0c53 100644 3 - --- a/src/server/ocsigen_cohttp.ml 4 - +++ b/src/server/ocsigen_cohttp.ml 5 - @@ -14,25 +14,13 @@ exception Ext_http_error of 6 - 7 - let _print_request fmt request = 8 - 9 - - let print_list print_data out_ch lst = 10 - - let rec aux = function 11 - - | [] -> () 12 - - | [ x ] -> print_data out_ch x 13 - - | x :: r -> print_data out_ch x; aux r 14 - - in aux lst 15 - - in 16 - - 17 - Format.fprintf fmt "%s [%s/%s]:\n" 18 - (Uri.to_string (Cohttp.Request.uri request)) 19 - Cohttp.(Code.string_of_version (Request.version request)) 20 - Cohttp.(Code.string_of_method (Request.meth request)); 21 - 22 - Cohttp.Header.iter 23 - - (fun key values -> 24 - - (print_list 25 - - (fun fmt value -> Format.fprintf fmt "\t%s = %s\n" key value) 26 - - fmt 27 - - values)) 28 - + (Format.fprintf fmt "\t%s = %s\n") 29 - (Cohttp.Request.headers request) 30 - 31 - let connections = Hashtbl.create 256
+6 -9
pkgs/development/ocaml-modules/ocsigen-server/default.nix
··· 1 1 { lib, buildDunePackage, fetchFromGitHub, which, ocaml, lwt_react, ssl, lwt_ssl, findlib 2 2 , bigstringaf, lwt, cstruct, mirage-crypto, zarith, mirage-crypto-ec, ptime, mirage-crypto-rng, mtime, ca-certs 3 3 , cohttp, cohttp-lwt-unix, hmap 4 - , lwt_log, ocaml_pcre, cryptokit, xml-light, ipaddr 4 + , lwt_log, re, cryptokit, xml-light, ipaddr 5 5 , camlzip 6 6 , makeWrapper 7 7 }: ··· 12 12 13 13 let caml_ld_library_path = 14 14 lib.concatMapStringsSep ":" mkpath [ 15 - bigstringaf lwt ssl cstruct mirage-crypto zarith mirage-crypto-ec ptime mirage-crypto-rng mtime ca-certs cryptokit ocaml_pcre 15 + bigstringaf lwt ssl cstruct mirage-crypto zarith mirage-crypto-ec ptime mirage-crypto-rng mtime ca-certs cryptokit re 16 16 ] 17 17 ; in 18 18 19 19 buildDunePackage rec { 20 - version = "5.0.1"; 20 + version = "5.1.0"; 21 21 pname = "ocsigenserver"; 22 22 23 - duneVersion = "3"; 24 23 minimalOCamlVersion = "4.08"; 25 24 26 25 src = fetchFromGitHub { 27 26 owner = "ocsigen"; 28 27 repo = "ocsigenserver"; 29 - rev = version; 30 - sha256 = "sha256:1vzza33hd41740dqrx4854rqpyd8wv7kwpsvvmlpck841i9lh8h5"; 28 + rev = "refs/tags/${version}"; 29 + hash = "sha256-6xO+4eYSp6rlgPT09L7cvlaz6kYYuUPRa3K/TgZmaqE="; 31 30 }; 32 31 33 32 nativeBuildInputs = [ makeWrapper which ]; 34 33 buildInputs = [ lwt_react camlzip findlib ]; 35 34 36 35 propagatedBuildInputs = [ cohttp cohttp-lwt-unix cryptokit hmap ipaddr lwt_log lwt_ssl 37 - ocaml_pcre xml-light 36 + re xml-light 38 37 ]; 39 - 40 - patches = [ ./cohttp-5.patch ]; 41 38 42 39 configureFlags = [ "--root $(out)" "--prefix /" "--temproot ''" ]; 43 40
+2 -2
pkgs/development/ocaml-modules/ocsigen-start/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "ocaml${ocaml.version}-ocsigen-start"; 10 - version = "6.0.1"; 10 + version = "6.1.0"; 11 11 12 12 nativeBuildInputs = [ ocaml findlib eliom ]; 13 13 buildInputs = [ ocsigen-ppx-rpc ]; ··· 21 21 owner = "ocsigen"; 22 22 repo = "ocsigen-start"; 23 23 rev = version; 24 - sha256 = "sha256:097bjaxvb1canilmqr8ay3ihig2msq7z8mi0g0rnbciikj1jsrym"; 24 + hash = "sha256-gHFPutoPYKTDsFninwBTc2WOIFd3+ghRYW2hi1y5MUs="; 25 25 }; 26 26 27 27 preInstall = ''