diff options
| author | jamie <git@skilet.ro> | 2025-10-23 13:31:28 +0100 |
|---|---|---|
| committer | jamie <git@skilet.ro> | 2025-10-23 13:31:28 +0100 |
| commit | 7911d7de314eed6fa2e4617975494302ee841499 (patch) | |
| tree | f7908f788c4b3597bd79228d25a01bf221fa7674 /flake.nix | |
| parent | d7a58ed9d91efddc09764a7c426dbf61f9db4141 (diff) | |
fix: add locale data to fix build error
Diffstat (limited to 'flake.nix')
| -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 |
