diff options
author | Ulrik Strid <ulrik.strid@outlook.com> | 2023-10-04 08:11:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 08:11:55 +0200 |
commit | 2f1fd646815087aa67d9377c1297462ab67ccfa4 (patch) | |
tree | 1ac732f2e17c1db2c1b040a71d568f1087b1eb05 /pkgs | |
parent | 2c9773fbc1039c1b3d6852b6ead66105fad16438 (diff) | |
parent | 562ced5399dad30ce86ead8bdf3c8b970511adfc (diff) |
Merge pull request #258641 from vbgl/ocaml-ocsigenserver-5.1.0
ocamlPackages.ocsigen_server: 5.0.1 → 5.1.0
Diffstat (limited to 'pkgs')
4 files changed, 12 insertions, 44 deletions
diff --git a/pkgs/development/ocaml-modules/eliom/default.nix b/pkgs/development/ocaml-modules/eliom/default.nix index f3c587428a409..5be5f09d19655 100644 --- a/pkgs/development/ocaml-modules/eliom/default.nix +++ b/pkgs/development/ocaml-modules/eliom/default.nix @@ -8,6 +8,7 @@ , opaline , ocamlbuild , ppx_deriving +, ppx_optcomp , findlib , js_of_ocaml-ocamlbuild , js_of_ocaml-ppx @@ -21,13 +22,13 @@ stdenv.mkDerivation rec { pname = "eliom"; - version = "9.4.0"; + version = "10.1.0"; src = fetchFromGitHub { owner = "ocsigen"; repo = "eliom"; rev = version; - sha256 = "sha256:1yn8mqxv9yz51x81j8wv1jn7l7crm8azp1m2g4zn5nz2s4nmfv6q"; + hash = "sha256-nzrLl8adaRW6c+IQfJ7s+7KtFT8uU27Umyrv0aWXuxw="; }; nativeBuildInputs = [ @@ -41,6 +42,7 @@ stdenv.mkDerivation rec { js_of_ocaml-ocamlbuild js_of_ocaml-ppx_deriving_json ocamlnet + ppx_optcomp ]; propagatedBuildInputs = [ diff --git a/pkgs/development/ocaml-modules/ocsigen-server/cohttp-5.patch b/pkgs/development/ocaml-modules/ocsigen-server/cohttp-5.patch deleted file mode 100644 index 44ade8da9296e..0000000000000 --- a/pkgs/development/ocaml-modules/ocsigen-server/cohttp-5.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/src/server/ocsigen_cohttp.ml b/src/server/ocsigen_cohttp.ml -index 4363cff7..b0cc0c53 100644 ---- a/src/server/ocsigen_cohttp.ml -+++ b/src/server/ocsigen_cohttp.ml -@@ -14,25 +14,13 @@ exception Ext_http_error of - - let _print_request fmt request = - -- let print_list print_data out_ch lst = -- let rec aux = function -- | [] -> () -- | [ x ] -> print_data out_ch x -- | x :: r -> print_data out_ch x; aux r -- in aux lst -- in -- - Format.fprintf fmt "%s [%s/%s]:\n" - (Uri.to_string (Cohttp.Request.uri request)) - Cohttp.(Code.string_of_version (Request.version request)) - Cohttp.(Code.string_of_method (Request.meth request)); - - Cohttp.Header.iter -- (fun key values -> -- (print_list -- (fun fmt value -> Format.fprintf fmt "\t%s = %s\n" key value) -- fmt -- values)) -+ (Format.fprintf fmt "\t%s = %s\n") - (Cohttp.Request.headers request) - - let connections = Hashtbl.create 256 diff --git a/pkgs/development/ocaml-modules/ocsigen-server/default.nix b/pkgs/development/ocaml-modules/ocsigen-server/default.nix index f4225c917dbda..515fd218d8fca 100644 --- a/pkgs/development/ocaml-modules/ocsigen-server/default.nix +++ b/pkgs/development/ocaml-modules/ocsigen-server/default.nix @@ -1,7 +1,7 @@ { lib, buildDunePackage, fetchFromGitHub, which, ocaml, lwt_react, ssl, lwt_ssl, findlib , bigstringaf, lwt, cstruct, mirage-crypto, zarith, mirage-crypto-ec, ptime, mirage-crypto-rng, mtime, ca-certs , cohttp, cohttp-lwt-unix, hmap -, lwt_log, ocaml_pcre, cryptokit, xml-light, ipaddr +, lwt_log, re, cryptokit, xml-light, ipaddr , camlzip , makeWrapper }: @@ -12,33 +12,30 @@ in let caml_ld_library_path = lib.concatMapStringsSep ":" mkpath [ - bigstringaf lwt ssl cstruct mirage-crypto zarith mirage-crypto-ec ptime mirage-crypto-rng mtime ca-certs cryptokit ocaml_pcre + bigstringaf lwt ssl cstruct mirage-crypto zarith mirage-crypto-ec ptime mirage-crypto-rng mtime ca-certs cryptokit re ] ; in buildDunePackage rec { - version = "5.0.1"; + version = "5.1.0"; pname = "ocsigenserver"; - duneVersion = "3"; minimalOCamlVersion = "4.08"; src = fetchFromGitHub { owner = "ocsigen"; repo = "ocsigenserver"; - rev = version; - sha256 = "sha256:1vzza33hd41740dqrx4854rqpyd8wv7kwpsvvmlpck841i9lh8h5"; + rev = "refs/tags/${version}"; + hash = "sha256-6xO+4eYSp6rlgPT09L7cvlaz6kYYuUPRa3K/TgZmaqE="; }; nativeBuildInputs = [ makeWrapper which ]; buildInputs = [ lwt_react camlzip findlib ]; propagatedBuildInputs = [ cohttp cohttp-lwt-unix cryptokit hmap ipaddr lwt_log lwt_ssl - ocaml_pcre xml-light + re xml-light ]; - patches = [ ./cohttp-5.patch ]; - configureFlags = [ "--root $(out)" "--prefix /" "--temproot ''" ]; dontAddPrefix = true; diff --git a/pkgs/development/ocaml-modules/ocsigen-start/default.nix b/pkgs/development/ocaml-modules/ocsigen-start/default.nix index 1df74b9036d20..86dcbe053effb 100644 --- a/pkgs/development/ocaml-modules/ocsigen-start/default.nix +++ b/pkgs/development/ocaml-modules/ocsigen-start/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { pname = "ocaml${ocaml.version}-ocsigen-start"; - version = "6.0.1"; + version = "6.1.0"; nativeBuildInputs = [ ocaml findlib eliom ]; buildInputs = [ ocsigen-ppx-rpc ]; @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { owner = "ocsigen"; repo = "ocsigen-start"; rev = version; - sha256 = "sha256:097bjaxvb1canilmqr8ay3ihig2msq7z8mi0g0rnbciikj1jsrym"; + hash = "sha256-gHFPutoPYKTDsFninwBTc2WOIFd3+ghRYW2hi1y5MUs="; }; preInstall = '' |