gnu: ocaml-batteries: Fix non determinism.

* gnu/packages/ocaml.scm (ocaml-batteries)[arguments]: Fix non
deterministic file ordering.
This commit is contained in:
Julien Lepiller 2019-06-06 20:09:34 +02:00
parent 4c7ffc2ab0
commit 850f787345
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 6 additions and 0 deletions

View File

@ -2297,6 +2297,12 @@ many additional enhancements, including:
`(#:phases
(modify-phases %standard-phases
(delete 'check) ; tests are run by the build phase
(add-before 'build 'fix-nondeterminism
(lambda _
(substitute* "setup.ml"
(("Sys.readdir dirname")
"let a = Sys.readdir dirname in Array.sort String.compare a; a"))
#t))
(replace 'build
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((files