Merge pull request #301752 from smasher164/ppxlib-32

ocamlPackages.ppxlib: 0.30.0 -> 0.32.0
This commit is contained in:
Vincent Laporte 2024-04-05 15:16:27 +02:00 committed by GitHub
commit aea3d607b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 52 additions and 3 deletions

View file

@ -1221,6 +1221,7 @@ with self;
hash = "sha256-pmEKi24+22T76SzI3RpBmQF7ZrQwlngrpFYLoBdLwe0=";
meta.description = "OCaml bindings for the Neovim API";
propagatedBuildInputs = [ angstrom-async async_extra expect_test_helpers_async faraday jsonaf man_in_the_middle_debugger semantic_version ];
patches = [ ./vcaml.patch ];
};
virtual_dom = janePackage {

View file

@ -0,0 +1,22 @@
diff --git a/src/api_call.ml b/src/api_call.ml
index 66f5083..6e96e95 100644
--- a/src/api_call.ml
+++ b/src/api_call.ml
@@ -112,7 +112,7 @@ include
include T
end)
(Open_on_rhs_intf)
- ()
+ (struct end)
module Or_error = struct
type nonrec 'a t = 'a Or_error.t t
@@ -138,7 +138,7 @@ module Or_error = struct
include T
end)
(Open_on_rhs_intf)
- ()
+ (struct end)
let error_s sexp = Const (Or_error.error_s sexp)
let ignore_m t = map t ~f:ignore

View file

@ -18,8 +18,6 @@ buildDunePackage rec {
minimalOCamlVersion = "4.08";
duneVersion = "3";
src = fetchFromGitHub {
owner = "fdopen";
repo = "ppx_cstubs";
@ -27,6 +25,8 @@ buildDunePackage rec {
hash = "sha256-qMmwRWCIfNyhCQYPKLiufnb57sTR3P+WInOqtPDywFs=";
};
patches = [ ./ppxlib.patch ];
nativeBuildInputs = [ cppo ];
buildInputs = [

View file

@ -0,0 +1,22 @@
diff --git a/src/internal/ppxc__script_real.ml b/src/internal/ppxc__script_real.ml
index 392f2a5..d950fc9 100644
--- a/src/internal/ppxc__script_real.ml
+++ b/src/internal/ppxc__script_real.ml
@@ -168,7 +168,7 @@ module C_content_make (E : Empty) = struct
if cnt = 0 then None else Some (String.concat "\n\n" l)
end
-module C_content_phase0 = C_content_make ()
+module C_content_phase0 = C_content_make (struct end)
module type Const_common_s = sig
include module type of C_content_phase0
@@ -300,7 +300,7 @@ module Const_phase0 = struct
else C_content_phase0.add_extract_source s2 loc exn f
end
-module C_content = C_content_make ()
+module C_content = C_content_make (struct end)
module Const = struct
include Const_common (C_content)

View file

@ -3,7 +3,7 @@
if lib.versionAtLeast ocaml.version "4.07"
then if lib.versionAtLeast ocaml.version "4.08"
then if lib.versionAtLeast ocaml.version "4.11"
then "0.30.0" else "0.24.0" else "0.15.0" else "0.13.0"
then "0.32.0" else "0.24.0" else "0.15.0" else "0.13.0"
, ocaml-compiler-libs, ocaml-migrate-parsetree, ppx_derivers, stdio
, stdlib-shims, ocaml-migrate-parsetree-2
}:
@ -64,6 +64,10 @@ let param = {
sha256 = "sha256-3UpjvenSm0mBDgTXZTk3yTLxd6lByg4ZgratU6xEIRA=";
min_version = "4.07";
};
"0.32.0" = {
sha256 = "sha256-UHzHPM+JXyLutSV6IkODjBijigkQX8/1Xu75FIVVQis=";
min_version = "4.07";
};
}."${version}"; in
if param ? max_version && lib.versionAtLeast ocaml.version param.max_version