import/cran: Set HOME when R.rsp is among inputs.

* guix/import/cran.scm (phases-for-inputs): Also add 'set-HOME phase when
R.rsp is among the inputs.

Change-Id: Ib00d981cc623da8ec487086913570f937a76aeb5
This commit is contained in:
Ricardo Wurmus 2024-11-27 14:10:15 +01:00
parent 8bee3a5910
commit 4a06a1aca3
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -679,7 +679,7 @@ (define (phases-for-inputs input-names)
(let ((rules (let ((rules
(list (lambda () (list (lambda ()
(and (any (lambda (name) (and (any (lambda (name)
(member name '("styler" "ExperimentHub"))) (member name '("styler" "ExperimentHub" "R.rsp")))
input-names) input-names)
'(add-after 'unpack 'set-HOME '(add-after 'unpack 'set-HOME
(lambda _ (setenv "HOME" "/tmp"))))) (lambda _ (setenv "HOME" "/tmp")))))