diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-09-08 15:10:05 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2024-09-10 23:09:00 +0200 |
commit | a9d9e8f853b70db0ce5265248b906ee57093e9b5 (patch) | |
tree | a3007743420bcc3632a1e6af9bcba42a8484a0a2 | |
parent | f977cb2b609f7122db2cf026cac5ab9d6d44a206 (diff) |
gnu: r-cli: Attempt to build reproducibly.
* gnu/packages/cran.scm (r-cli)[arguments]: Add phase to avoid embedding the
PID while building.
Change-Id: Ia119af44bc59a324d55ee750d3d6dd0dfb231b0c
-rw-r--r-- | gnu/packages/cran.scm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 13b92bb6f1..8bc2239389 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -11114,6 +11114,19 @@ multivariate function estimation using smoothing splines.") (base32 "0ha8mijnzlz1cxsjk502j2gzspd8fnk3j79bvnqm871225ghi5a2")))) (build-system r-build-system) + (arguments + (list + #:phases + '(modify-phases %standard-phases + ;; Do not embed the PID of the build process. + (add-after 'unpack 'build-reproducibly + (lambda _ + (setenv "GUIX_BUILD" "yes") + (substitute* '("R/onload.R" "R/app.R") + (("\\<- Sys\\.getpid\\(\\)") + (lambda _ + (string-append + "<- if (Sys.getenv(\"GUIX_BUILD\") == \"\") { Sys.getpid() } else { 12345 }"))))))))) (home-page "https://github.com/r-lib/cli#readme") (synopsis "Helpers for developing command line interfaces") (description "This package provides a suite of tools designed to build |