mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 06:42:14 -05:00
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>
This commit is contained in:
parent
9c6353c556
commit
d029fef845
1 changed files with 10 additions and 0 deletions
|
@ -541,6 +541,16 @@ (define-public erlang-jsx
|
||||||
(base32
|
(base32
|
||||||
"1wr7jkxm6nlgvd52xhniav64xr9rml2ngb35rwjwqlqvq7ywhp0c"))))
|
"1wr7jkxm6nlgvd52xhniav64xr9rml2ngb35rwjwqlqvq7ywhp0c"))))
|
||||||
(build-system rebar-build-system)
|
(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")
|
(synopsis "Streaming, evented JSON parsing toolkit")
|
||||||
(description
|
(description
|
||||||
"An Erlang application for consuming, producing and manipulating json.")
|
"An Erlang application for consuming, producing and manipulating json.")
|
||||||
|
|
Loading…
Reference in a new issue