Avoid rebuilding of packages
This commit is contained in:
parent
b0325f0328
commit
2e5d80deac
1 changed files with 10 additions and 8 deletions
18
flake.nix
18
flake.nix
|
@ -1,18 +1,20 @@
|
||||||
{
|
{
|
||||||
description = "Custom locale";
|
description = "Custom locale";
|
||||||
outputs = { self, ... }: {
|
outputs = { self, ... }: {
|
||||||
overlays.default = final: prev: {
|
nixosModules.default = { config, lib, pkgs, ... }: {
|
||||||
glibcLocales = prev.glibcLocales.overrideAttrs (base: {
|
i18n.defaultLocale = lib.mkDefault "en_EU.UTF-8";
|
||||||
|
|
||||||
|
i18n.glibcLocales = (pkgs.glibcLocales.overrideAttrs (base: {
|
||||||
postPatch = base.postPatch + ''
|
postPatch = base.postPatch + ''
|
||||||
cp ${prev.lib.escapeShellArg ./en_EU} localedata/locales/en_EU
|
cp ${./en_EU} localedata/locales/en_EU
|
||||||
echo 'en_EU.UTF-8/UTF-8 \' >>localedata/SUPPORTED
|
echo 'en_EU.UTF-8/UTF-8 \' >>localedata/SUPPORTED
|
||||||
'';
|
'';
|
||||||
});
|
})).override {
|
||||||
};
|
allLocales = builtins.any (x: x == "all")
|
||||||
|
config.i18n.supportedLocales;
|
||||||
|
|
||||||
nixosModules.default = { lib, ... }: {
|
locales = config.i18n.supportedLocales;
|
||||||
nixpkgs.overlays = [ self.overlays.default ];
|
};
|
||||||
i18n.defaultLocale = lib.mkDefault "en_EU.UTF-8";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue