Merge pull request #301752 from smasher164/ppxlib-32

ocamlPackages.ppxlib: 0.30.0 -> 0.32.0

authored by Vincent Laporte and committed by GitHub aea3d607 cfe5ebab

+52 -3
+1
pkgs/development/ocaml-modules/janestreet/0.16.nix
··· 1221 1221 hash = "sha256-pmEKi24+22T76SzI3RpBmQF7ZrQwlngrpFYLoBdLwe0="; 1222 1222 meta.description = "OCaml bindings for the Neovim API"; 1223 1223 propagatedBuildInputs = [ angstrom-async async_extra expect_test_helpers_async faraday jsonaf man_in_the_middle_debugger semantic_version ]; 1224 + patches = [ ./vcaml.patch ]; 1224 1225 }; 1225 1226 1226 1227 virtual_dom = janePackage {
+22
pkgs/development/ocaml-modules/janestreet/vcaml.patch
··· 1 + diff --git a/src/api_call.ml b/src/api_call.ml 2 + index 66f5083..6e96e95 100644 3 + --- a/src/api_call.ml 4 + +++ b/src/api_call.ml 5 + @@ -112,7 +112,7 @@ include 6 + include T 7 + end) 8 + (Open_on_rhs_intf) 9 + - () 10 + + (struct end) 11 + 12 + module Or_error = struct 13 + type nonrec 'a t = 'a Or_error.t t 14 + @@ -138,7 +138,7 @@ module Or_error = struct 15 + include T 16 + end) 17 + (Open_on_rhs_intf) 18 + - () 19 + + (struct end) 20 + 21 + let error_s sexp = Const (Or_error.error_s sexp) 22 + let ignore_m t = map t ~f:ignore
+2 -2
pkgs/development/ocaml-modules/ppx_cstubs/default.nix
··· 18 18 19 19 minimalOCamlVersion = "4.08"; 20 20 21 - duneVersion = "3"; 22 - 23 21 src = fetchFromGitHub { 24 22 owner = "fdopen"; 25 23 repo = "ppx_cstubs"; 26 24 rev = version; 27 25 hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs="; 28 26 }; 27 + 28 + patches = [ ./ppxlib.patch ]; 29 29 30 30 nativeBuildInputs = [ cppo ]; 31 31
+22
pkgs/development/ocaml-modules/ppx_cstubs/ppxlib.patch
··· 1 + diff --git a/src/internal/ppxc__script_real.ml b/src/internal/ppxc__script_real.ml 2 + index 392f2a5..d950fc9 100644 3 + --- a/src/internal/ppxc__script_real.ml 4 + +++ b/src/internal/ppxc__script_real.ml 5 + @@ -168,7 +168,7 @@ module C_content_make (E : Empty) = struct 6 + if cnt = 0 then None else Some (String.concat "\n\n" l) 7 + end 8 + 9 + -module C_content_phase0 = C_content_make () 10 + +module C_content_phase0 = C_content_make (struct end) 11 + 12 + module type Const_common_s = sig 13 + include module type of C_content_phase0 14 + @@ -300,7 +300,7 @@ module Const_phase0 = struct 15 + else C_content_phase0.add_extract_source s2 loc exn f 16 + end 17 + 18 + -module C_content = C_content_make () 19 + +module C_content = C_content_make (struct end) 20 + 21 + module Const = struct 22 + include Const_common (C_content)
+5 -1
pkgs/development/ocaml-modules/ppxlib/default.nix
··· 3 3 if lib.versionAtLeast ocaml.version "4.07" 4 4 then if lib.versionAtLeast ocaml.version "4.08" 5 5 then if lib.versionAtLeast ocaml.version "4.11" 6 - then "0.30.0" else "0.24.0" else "0.15.0" else "0.13.0" 6 + then "0.32.0" else "0.24.0" else "0.15.0" else "0.13.0" 7 7 , ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio 8 8 , stdlib-shims, ocaml-migrate-parsetree-2 9 9 }: ··· 62 62 }; 63 63 "0.30.0" = { 64 64 sha256 = "sha256-3UpjvenSm0mBDgTXZTk3yTLxd6lByg4ZgratU6xEIRA="; 65 + min_version = "4.07"; 66 + }; 67 + "0.32.0" = { 68 + sha256 = "sha256-UHzHPM+JXyLutSV6IkODjBijigkQX8/1Xu75FIVVQis="; 65 69 min_version = "4.07"; 66 70 }; 67 71 }."${version}"; in