summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/janestreet
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-07-02 17:14:53 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2020-07-02 17:14:53 +0200
commitc33ca7c5ce4d80246fd656dd8a5ab078cc90c03d (patch)
treed1a10ef8a3e8fe00ac12ac1437ec46a856521084 /pkgs/development/ocaml-modules/janestreet
parent798c2d8bc1e947eb26e249b326bfaba49a91b735 (diff)
parent3ee58112693c11cd8157495e09714cf9ddb599b3 (diff)
downloadnixpkgs-c33ca7c5ce4d80246fd656dd8a5ab078cc90c03d.tar
nixpkgs-c33ca7c5ce4d80246fd656dd8a5ab078cc90c03d.tar.gz
nixpkgs-c33ca7c5ce4d80246fd656dd8a5ab078cc90c03d.tar.bz2
nixpkgs-c33ca7c5ce4d80246fd656dd8a5ab078cc90c03d.tar.lz
nixpkgs-c33ca7c5ce4d80246fd656dd8a5ab078cc90c03d.tar.xz
nixpkgs-c33ca7c5ce4d80246fd656dd8a5ab078cc90c03d.tar.zst
nixpkgs-c33ca7c5ce4d80246fd656dd8a5ab078cc90c03d.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/ocaml-modules/janestreet')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/default.nix1
-rw-r--r--pkgs/development/ocaml-modules/janestreet/email-message-angstrom-0.14.patch22
2 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/default.nix b/pkgs/development/ocaml-modules/janestreet/default.nix
index ff93d65357a..69f4e6f61d8 100644
--- a/pkgs/development/ocaml-modules/janestreet/default.nix
+++ b/pkgs/development/ocaml-modules/janestreet/default.nix
@@ -533,6 +533,7 @@ rec {
     pname = "email_message";
     hash = "131jd72k4s8cdbgg6gyg7w5v8mphdlvdx4fgvh8d9a1m7kkvbxfg";
     propagatedBuildInputs = [ async angstrom core_extended cryptokit magic-mime ounit ];
+    patches = [ ./email-message-angstrom-0.14.patch ];
     meta.description = "E-mail message parser";
   };
 
diff --git a/pkgs/development/ocaml-modules/janestreet/email-message-angstrom-0.14.patch b/pkgs/development/ocaml-modules/janestreet/email-message-angstrom-0.14.patch
new file mode 100644
index 00000000000..624a3e5334b
--- /dev/null
+++ b/pkgs/development/ocaml-modules/janestreet/email-message-angstrom-0.14.patch
@@ -0,0 +1,22 @@
+diff --git a/email_address/src/email_address.ml b/email_address/src/email_address.ml
+index 7470273..d070465 100644
+--- a/email_address/src/email_address.ml
++++ b/email_address/src/email_address.ml
+@@ -38,7 +38,7 @@ module Stable = struct
+       let of_string ?default_domain input_str =
+         let open Core_kernel in
+         let open! Int.Replace_polymorphic_compare in
+-        match Angstrom.parse_string Email_address_parser_stable_v1.email_only input_str with
++        match Angstrom.parse_string ~consume:Prefix Email_address_parser_stable_v1.email_only input_str with
+         | Error error ->
+           Or_error.error_s [%message
+             "Failed to parse email address"
+@@ -104,7 +104,7 @@ module T = Stable.V1.With_comparator
+ include T
+ 
+ let list_of_string ?default_domain input_str =
+-  match Angstrom.parse_string Email_address_parser_stable_v1.email_list_only input_str with
++  match Angstrom.parse_string ~consume:Prefix Email_address_parser_stable_v1.email_list_only input_str with
+   | Error error ->
+     Or_error.error_s [%message
+       "Failed to parse email address(es)"