From f2c9179f6fc81c955038a44b04ad5e459581816e Mon Sep 17 00:00:00 2001 From: JakobLichterfeld Date: Fri, 30 May 2025 08:44:52 +0200 Subject: [PATCH] fix(nix): skip duplicate cldr download to fix build on darwin and improve reproducibility (#4763) * fix(nix): skip duplicate cldr download to fix build on darwin and improve reproducibility fixes: #4761 * docs: update changelog * fix: correct env format to skip duplicate locale download * chore: remove production environment variable from build settings as it defaults to prod --- CHANGELOG.md | 1 + nix/flake-modules/package.nix | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfde3af9..75a19b4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - fix(nix): update mix dependency hash in nix builds ([08fe0ac](https://github.com/teslamate-org/teslamate/commit/08fe0ac934176484c84fd4329c8d64925b6b0b97) - @JakobLichterfeld) - feat(nix): use nixos-25.05 (#4716 - @JakobLichterfeld) - build(deps): update flake.lock (#4716) +- fix(nix): skip duplicate cldr download to fix build on darwin and improve reproducibility (#4763 - @JakobLichterfeld) #### Dashboards diff --git a/nix/flake-modules/package.nix b/nix/flake-modules/package.nix index eba59eb5..1b3bed9c 100644 --- a/nix/flake-modules/package.nix +++ b/nix/flake-modules/package.nix @@ -65,6 +65,8 @@ mixFodDeps ; + # set the environment variables for the build + SKIP_LOCALE_DOWNLOAD = "true"; # do not download locales during build as they are already included in the cldr package from github LOCALES = "${cldr}/priv/cldr"; postBuild = ''