summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 704bb00..54b5844 100644
--- a/flake.nix
+++ b/flake.nix
@@ -35,6 +35,14 @@
src = ./src;
GIT_REVISION = if (self ? shortRev) then self.shortRev else "dirty";
+ # LANG and LOCALE_ARCHIVE are fixes pulled from the community:
+ # https://github.com/jaspervdj/hakyll/issues/614#issuecomment-411520691
+ # https://github.com/NixOS/nix/issues/318#issuecomment-52986702
+ # https://github.com/MaxDaten/brutal-recipes/blob/source/default.nix#L24
+ LANG = "en_GB.UTF-8";
+ LOCALE_ARCHIVE = pkgs.lib.optionalString (
+ pkgs.buildPlatform.libc == "glibc"
+ ) "${pkgs.glibcLocales}/lib/locale/locale-archive";
buildPhase = ''
${lib.getExe self'.packages.ssg} build --verbose