mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: ocaml-batteries: Fix non determinism.
* gnu/packages/ocaml.scm (ocaml-batteries)[arguments]: Fix non deterministic file ordering.
This commit is contained in:
parent
4c7ffc2ab0
commit
850f787345
1 changed files with 6 additions and 0 deletions
|
@ -2297,6 +2297,12 @@ (define-public ocaml-batteries
|
|||
`(#: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
|
||||
|
|
Loading…
Reference in a new issue