From ab5ff8691706b10a8c428e944fdf488e90aef9c1 Mon Sep 17 00:00:00 2001
From: Jade Lovelace <lix@jade.fyi>
Date: Tue, 12 Mar 2024 18:30:55 -0700
Subject: [PATCH] flake: dev shells should include the LOCALE_ARCHIVE so
 configure does not complain

Change-Id: Id661bd8c90696cb663a25503878a697f596d1e77
---
 flake.nix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/flake.nix b/flake.nix
index 8fde05179..96288dd35 100644
--- a/flake.nix
+++ b/flake.nix
@@ -423,6 +423,9 @@
               installFlags = "sysconfdir=$(out)/etc";
               strictDeps = false;
 
+              # Required to make non-NixOS Linux not complain about missing locale files during configure in a dev shell
+              LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
+
               shellHook = ''
                 PATH=$prefix/bin:$PATH
                 unset PYTHONPATH