mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 12:47:33 -05:00
gnu: r-biocparallel: Build reproducibly.
* gnu/packages/bioconductor.scm (r-biocparallel)[arguments]: Add phase "make-reproducible".
This commit is contained in:
parent
d99a18252c
commit
8f9fd9b70c
1 changed files with 28 additions and 0 deletions
|
@ -1705,6 +1705,34 @@ (define-public r-biocparallel
|
|||
(properties
|
||||
`((upstream-name . "BiocParallel")))
|
||||
(build-system r-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'make-reproducible
|
||||
(lambda _
|
||||
;; Remove generated documentation.
|
||||
(for-each delete-file
|
||||
'("inst/doc/BiocParallel_BatchtoolsParam.pdf"
|
||||
"inst/doc/Introduction_To_BiocParallel.pdf"
|
||||
"inst/doc/Errors_Logs_And_Debugging.pdf"
|
||||
"inst/doc/BiocParallel_BatchtoolsParam.R"
|
||||
"inst/doc/Introduction_To_BiocParallel.R"
|
||||
"inst/doc/Errors_Logs_And_Debugging.R"))
|
||||
|
||||
;; Remove time-dependent macro
|
||||
(substitute* '("inst/doc/BiocParallel_BatchtoolsParam.Rnw"
|
||||
"inst/doc/Introduction_To_BiocParallel.Rnw"
|
||||
"inst/doc/Errors_Logs_And_Debugging.Rnw"
|
||||
"vignettes/BiocParallel_BatchtoolsParam.Rnw"
|
||||
"vignettes/Introduction_To_BiocParallel.Rnw"
|
||||
"vignettes/Errors_Logs_And_Debugging.Rnw")
|
||||
(("\\today") "later"))
|
||||
|
||||
;; Initialize the random number generator seed when building.
|
||||
(substitute* "R/internal_rng_stream.R"
|
||||
(("\"L'Ecuyer-CMRG\"\\)" m)
|
||||
(string-append
|
||||
m "; if (!is.na(Sys.getenv(\"SOURCE_DATE_EPOCH\"))) {set.seed(100)}\n"))))))))
|
||||
(propagated-inputs
|
||||
`(("r-futile-logger" ,r-futile-logger)
|
||||
("r-snow" ,r-snow)
|
||||
|
|
Loading…
Reference in a new issue