summaryrefslogtreecommitdiff
path: root/gnu/packages/ocaml.scm
diff options
context:
space:
mode:
authorJosselin Poiret <dev@jpoiret.xyz>2025-07-08 13:41:59 +0200
committerJulien Lepiller <julien@lepiller.eu>2025-07-10 07:04:01 +0200
commitaf025cf48681720a3838b77bb066062a3760b8d3 (patch)
tree10a1f831ddd795714e46b4c6cfb6858e50d557a9 /gnu/packages/ocaml.scm
parentb755dce10003ae0c432640381ad052813e002d1e (diff)
gnu: ocaml-merlin: Fix tests.
* gnu/packages/ocaml.scm (ocaml-merlin) (ocaml5.0-merlin): Fix tests Change-Id: I8a7e4cdda499a9ad7296741e4ae581d868aba31b Signed-off-by: Julien Lepiller <julien@lepiller.eu>
Diffstat (limited to 'gnu/packages/ocaml.scm')
-rw-r--r--gnu/packages/ocaml.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 619b3836c6..ea223e425b 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6203,6 +6203,8 @@ interfaces and the standard higher-level merlin protocol.")
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
+ ;; Tests require a writable cache directory
+ (setenv "HOME" "/tmp")
(when tests?
(invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader")))))))
(propagated-inputs (list ocaml-merlin-lib ocaml-yojson))
@@ -6230,6 +6232,8 @@ Atom.")
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
+ ;; Tests require a writable cache directory
+ (setenv "HOME" "/tmp")
(when tests?
(invoke "dune" "runtest" "-p" "merlin,dot-merlin-reader")))))))
(propagated-inputs (list ocaml-merlin-lib ocaml-yojson))