diff options
| -rw-r--r-- | flake.nix | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |
