From befafa02652befa1293b138506dbf90f333c2fc5 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Fri, 26 Jul 2024 18:30:12 +0200 Subject: [PATCH] Experiment --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index a712b3e..782a72d 100644 --- a/flake.nix +++ b/flake.nix @@ -2,9 +2,11 @@ description = "Custom locale"; outputs = { self, ... }: { overlays.default = final: prev: { - glibcLocales = prev.glibcLocales.overrideAttrs (base: { + glibcLocales = prev.glibcLocales.overrideAttrs (base: + let locale = ./en_EU; + in { postPatch = base.postPatch + '' - cp ${prev.lib.escapeShellArg ./en_EU} localedata/locales/en_EU + cp ${prev.lib.escapeShellArg locale} localedata/locales/en_EU echo 'en_EU.UTF-8/UTF-8 \' >>localedata/SUPPORTED ''; });