From 637d479e138bff8ce86ecd213947ee6c7b48020a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 14 Oct 2021 13:20:48 +0200 Subject: [PATCH] guix: Install UTF-8 locale to build the site. * guix.scm: Install UTF-8 locale. --- guix.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guix.scm b/guix.scm index 393c66e..a1510b1 100644 --- a/guix.scm +++ b/guix.scm @@ -25,6 +25,7 @@ (use-modules (gnu) (guix) ((guix git-download) #:select (git-predicate)) + (gnu packages base) (gnu packages guile-xyz)) (define this-directory @@ -40,6 +41,12 @@ #~(begin (use-modules (guix build utils)) + ;; Install a Unicode-capable locale. + (setenv "GUIX_LOCPATH" + #$(file-append glibc-utf8-locales + "/lib/locale")) + (setenv "LC_ALL" "en_US.utf8") + (copy-recursively #$source ".") (invoke #$(file-append haunt "/bin/haunt") "build") (copy-recursively "site" #$output))))