From 3d887b715dd79a7cec93ef5392f94aa25a9dd51e Mon Sep 17 00:00:00 2001 From: Stefan Berthold Date: Wed, 21 Jan 2026 16:34:04 +0100 Subject: [PATCH] build glibcLocales on Linux only --- nix/wire-server.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/wire-server.nix b/nix/wire-server.nix index 97926ffb53..76d3f1b26c 100644 --- a/nix/wire-server.nix +++ b/nix/wire-server.nix @@ -474,8 +474,8 @@ let # This gets sourced by direnv. Set NIX_PATH, so `nix-shell` uses the same nixpkgs as here. text = '' export NIX_PATH=nixpkgs=${toString pkgs.path} - export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive - ''; + ${lib.optionalString pkgs.stdenv.isLinux "export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive"} + '' ; }; allImages = pkgs.linkFarm "all-images" (images localModsEnableAll);