From 7911d7de314eed6fa2e4617975494302ee841499 Mon Sep 17 00:00:00 2001 From: jamie Date: Thu, 23 Oct 2025 13:31:28 +0100 Subject: fix: add locale data to fix build error --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.3.1