aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorIgor Goryachev via Guix-patches via <guix-patches@gnu.org>2024-08-07 19:32:09 +0300
committerAndrew Tropin <andrew@trop.in>2024-08-09 04:54:18 +0400
commitd029fef8452505f9ad4a8902d99501bb44aa3559 (patch)
tree0377917dd98263f53021f584c200261664b779c0 /gnu
parent9c6353c5568a56620af43c2213a9f1cbdc2b4adf (diff)
downloadguix-d029fef8452505f9ad4a8902d99501bb44aa3559.tar.gz
guix-d029fef8452505f9ad4a8902d99501bb44aa3559.zip
gnu: erlang-jsx: Fix tests under Erlang 27+.
* gnu/packages/erlang.scm (erlang-jsx): Fix tests under Erlang 27+. Change-Id: Iaade94de64b5e5837a6a54376ba946c20d7107b9 Signed-off-by: Andrew Tropin <andrew@trop.in>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/erlang.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm
index b6a31f26e9..60d644ab8d 100644
--- a/gnu/packages/erlang.scm
+++ b/gnu/packages/erlang.scm
@@ -541,6 +541,16 @@ testing of stateful systems.")
(base32
"1wr7jkxm6nlgvd52xhniav64xr9rml2ngb35rwjwqlqvq7ywhp0c"))))
(build-system rebar-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; Fix tests for running under Erlang 27+.
+ (add-after 'unpack 'fix-tests-for-erlang-27
+ (lambda _
+ (substitute* "src/jsx_decoder.erl"
+ (("\\{\"-0\\.0\", \\[\\{float, 0\\.0\\}, end_json\\], <<\"-0\\.0\">>\\},")
+ "{\"0.0\", [{float, 0.0}, end_json], <<\"0.0\">>},
+{\"-0.0\", [{float, -0.0}, end_json], <<\"-0.0\">>},")))))))
(synopsis "Streaming, evented JSON parsing toolkit")
(description
"An Erlang application for consuming, producing and manipulating json.")