diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-05-14 13:47:11 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-05-14 13:47:11 +0200 |
commit | 1c88229d4493d217ce4dd736f36e496e026e7cf4 (patch) | |
tree | 9217668cc14cea98bd2800bb0d909f889391752a /gnu | |
parent | 8ec227471a40ec52dd8a6ccb6c861b656de34251 (diff) | |
download | guix-1c88229d4493d217ce4dd736f36e496e026e7cf4.tar.gz guix-1c88229d4493d217ce4dd736f36e496e026e7cf4.zip |
gnu: rmath-standalone: Set timezone variables.
These variables are needed by R's configure script.
* gnu/packages/statistics.scm (rmath-standalone)[arguments]: Add 'set-timezone
phase; remove trailing #T from 'chdir phase.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/statistics.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 2f471420c2..356981645f 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -482,8 +482,14 @@ available, greatly increasing its breadth and scope.") (arguments '(#:phases (modify-phases %standard-phases + (add-before 'configure 'set-timezone + ;; We need TZ during the configure step. + (lambda* (#:key inputs #:allow-other-keys) + (setenv "TZ" "UTC+1") + (setenv "TZDIR" + (search-input-directory inputs "share/zoneinfo")))) (add-after 'configure 'chdir - (lambda _ (chdir "src/nmath/standalone/") #t))))) + (lambda _ (chdir "src/nmath/standalone/")))))) (synopsis "Standalone R math library") (description "This package provides the R math library as an independent package."))) |