tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ocamlPackages.ppx_cstubs: fix build with ppxlib > 0.30
Vincent Laporte
2 years ago
d52a9683
b0d98140
+24
-2
2 changed files
expand all
collapse all
unified
split
pkgs
development
ocaml-modules
ppx_cstubs
default.nix
ppxlib.patch
+2
-2
pkgs/development/ocaml-modules/ppx_cstubs/default.nix
···
18
18
19
19
minimalOCamlVersion = "4.08";
20
20
21
21
-
duneVersion = "3";
22
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
27
+
28
28
+
patches = [ ./ppxlib.patch ];
29
29
30
30
nativeBuildInputs = [ cppo ];
31
31
+22
pkgs/development/ocaml-modules/ppx_cstubs/ppxlib.patch
···
1
1
+
diff --git a/src/internal/ppxc__script_real.ml b/src/internal/ppxc__script_real.ml
2
2
+
index 392f2a5..d950fc9 100644
3
3
+
--- a/src/internal/ppxc__script_real.ml
4
4
+
+++ b/src/internal/ppxc__script_real.ml
5
5
+
@@ -168,7 +168,7 @@ module C_content_make (E : Empty) = struct
6
6
+
if cnt = 0 then None else Some (String.concat "\n\n" l)
7
7
+
end
8
8
+
9
9
+
-module C_content_phase0 = C_content_make ()
10
10
+
+module C_content_phase0 = C_content_make (struct end)
11
11
+
12
12
+
module type Const_common_s = sig
13
13
+
include module type of C_content_phase0
14
14
+
@@ -300,7 +300,7 @@ module Const_phase0 = struct
15
15
+
else C_content_phase0.add_extract_source s2 loc exn f
16
16
+
end
17
17
+
18
18
+
-module C_content = C_content_make ()
19
19
+
+module C_content = C_content_make (struct end)
20
20
+
21
21
+
module Const = struct
22
22
+
include Const_common (C_content)