[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/09: website: Fix building with GUIX_WEB_SITE_ROOT_PATH.
From: |
Florian Pelz |
Subject: |
08/09: website: Fix building with GUIX_WEB_SITE_ROOT_PATH. |
Date: |
Wed, 25 Mar 2020 21:23:42 -0400 (EDT) |
pelzflorian pushed a commit to branch wip-i18n
in repository guix-artwork.
commit f61ba8fdd0da8061da84aa57c6fd3b9b1e424821
Author: Florian Pelz <address@hidden>
AuthorDate: Wed Oct 30 21:45:45 2019 +0000
website: Fix building with GUIX_WEB_SITE_ROOT_PATH.
* website/.guix.scm: Retain GUIX_WEB_SITE_ROOT_PATH in the build expression.
---
website/.guix.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/website/.guix.scm b/website/.guix.scm
index fe1119c..5b864c5 100644
--- a/website/.guix.scm
+++ b/website/.guix.scm
@@ -46,6 +46,9 @@
#:recursive? #t
#:select? (git-predicate this-directory)))
+(define root-path
+ (getenv "GUIX_WEB_SITE_ROOT_PATH"))
+
(define (package+propagated-inputs package)
(match (package-transitive-propagated-inputs package)
(((labels packages) ...)
@@ -143,6 +146,10 @@
;; Use a sane default.
(setenv "XDG_CACHE_HOME" "/tmp/.cache")
+ ;; Use GUIX_WEB_SITE_ROOT_PATH from the environment in which
+ ;; this script was run.
+ (setenv "GUIX_WEB_SITE_ROOT_PATH" #$root-path)
+
;; Build the website for each translation.
(for-each
(lambda (lingua)
- branch wip-i18n created (now 644a618), Florian Pelz, 2020/03/25
- 03/09: website: media: Do not localize video page URLs., Florian Pelz, 2020/03/25
- 05/09: website: navbar: Make dropdowns accessible to keyboard and touch input., Florian Pelz, 2020/03/25
- 08/09: website: Fix building with GUIX_WEB_SITE_ROOT_PATH.,
Florian Pelz <=
- 06/09: website: Add language selection dropdown to navbar., Florian Pelz, 2020/03/25
- 09/09: website: Refactor GUIX_WEB_SITE_ROOT_PATH handling., Florian Pelz, 2020/03/25
- 07/09: website: Handle GUIX_WEB_SITE_ROOT_PATH not ending in a slash., Florian Pelz, 2020/03/25
- 01/09: website: Add custom xgettext to extract from nested sexps for i18n., Florian Pelz, 2020/03/25
- 02/09: website: apps: Mark all files for translation., Florian Pelz, 2020/03/25
- 04/09: website: nls: Add German translation., Florian Pelz, 2020/03/25