gnu: r-hpar: Avoid internet access.
ExperimentHub::createHubAccessors needs internet access. When R tests if the package can be loaded it runs zzz.R, which contains the call to createHubAccessors. We set the variable GUIX_BUILD to conditionally disable this call. * gnu/packages/bioconductor.scm (r-hpar)[arguments]: Add two build phases: 'set-HOME and 'avoid-internet-access.
This commit is contained in:
parent
9a2908211c
commit
46d78bf045
|
@ -7128,6 +7128,20 @@ (define-public r-hpar
|
|||
(base32
|
||||
"1sg0mjada72a13xh3k6xsiaff7xj4mp76r6i8iab8nfkvng07p4i"))))
|
||||
(build-system r-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'unpack 'set-HOME
|
||||
(lambda _
|
||||
(setenv "HOME" "/tmp")))
|
||||
(add-after 'unpack 'avoid-internet-access
|
||||
(lambda _
|
||||
(setenv "GUIX_BUILD" "yes")
|
||||
(substitute* "R/zzz.R"
|
||||
(("ExperimentHub::createHubAccessors.*" m)
|
||||
(string-append
|
||||
"if (Sys.getenv(\"GUIX_BUILD\") == \"\") {" m "}"))))))))
|
||||
(propagated-inputs (list r-experimenthub))
|
||||
(native-inputs
|
||||
(list r-knitr))
|
||||
|
|
Loading…
Reference in a new issue