ocamlPackages.piqi: support for sedlex ≥ 3.0
This commit is contained in:
parent
23203f94a2
commit
7f63ad9029
2 changed files with 15 additions and 1 deletions
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
strictDeps = true;
|
||||
|
||||
patches = [ ./no-ocamlpath-override.patch ];
|
||||
patches = [ ./no-stream.patch ./no-ocamlpath-override.patch ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
|
|
14
pkgs/development/ocaml-modules/piqi/no-stream.patch
Normal file
14
pkgs/development/ocaml-modules/piqi/no-stream.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- ./piqilib/piq_lexer.ml
|
||||
+++ ./piqilib/piq_lexer.ml
|
||||
@@ -476,11 +476,6 @@ let init_from_string s =
|
||||
make_buf lexbuf
|
||||
|
||||
|
||||
-let init_from_stream s =
|
||||
- let lexbuf = Sedlexing.Utf8.from_stream s in
|
||||
- make_buf lexbuf
|
||||
-
|
||||
-
|
||||
let init_from_channel ch =
|
||||
let lexbuf = Sedlexing.Utf8.from_channel ch in
|
||||
make_buf lexbuf
|
Loading…
Reference in a new issue