import/cran: Also add set-HOME phase when R.cache exists.

* guix/import/cran.scm (phases-for-inputs): Add "R.cache" to the list.

Change-Id: Ia65beb7cd535de10b024d108a97db0169045fe1f
This commit is contained in:
Ricardo Wurmus 2024-12-01 09:04:46 +01:00 committed by Andreas Enge
parent 2ec838c630
commit 066d769293
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

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