mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: r-quantmod: Attempt to build reproducibly.
* gnu/packages/cran.scm (r-quantmod)[arguments]: Add phase to avoid recording system time when SOURCE_DATE_EPOCH is set. Change-Id: I818ddf5f5bac7041c9a26624996b6b6a0256f3ea
This commit is contained in:
parent
57c26a2bd8
commit
056910ec86
1 changed files with 11 additions and 0 deletions
|
@ -12300,6 +12300,17 @@ (define-public r-quantmod
|
|||
(base32
|
||||
"165vp2ygry8ibcpxjbyfvfrjbv98syln12kkyzci2ygp84r5sv1r"))))
|
||||
(build-system r-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:phases
|
||||
'(modify-phases %standard-phases
|
||||
(add-after 'unpack 'build-reproducibly
|
||||
(lambda _
|
||||
(substitute* "R/buildModel.R"
|
||||
(("Sys.time\\(\\)")
|
||||
"if (\"\" != Sys.getenv(\"SOURCE_DATE_EPOCH\")) {\
|
||||
as.numeric(Sys.getenv(\"SOURCE_DATE_EPOCH\"))\
|
||||
} else { Sys.time() }\n")))))))
|
||||
(propagated-inputs
|
||||
(list r-curl r-jsonlite r-ttr r-xts r-zoo))
|
||||
(home-page "https://cran.r-project.org/web/packages/quantmod/")
|
||||
|
|
Loading…
Reference in a new issue