From 0e2457fbc5cef711f5d3cb3ee6a5ca6ecdee6c8d Mon Sep 17 00:00:00 2001 From: Sander Date: Tue, 19 Nov 2024 01:41:47 +0400 Subject: [PATCH] package: set locale archive if missing --- package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.nix b/package.nix index 8c51a2051..99da69cb7 100644 --- a/package.nix +++ b/package.nix @@ -50,11 +50,17 @@ pkgs.rustPlatform.buildRustPackage { postInstall = pkgs.lib.optionalString (!build_tasks) '' wrapProgram $out/bin/devenv \ --set DEVENV_NIX ${inputs.nix.packages.${pkgs.stdenv.system}.nix} \ + ${pkgs.lib.optionalString (pkgs.stdenv.isLinux && (pkgs.glibcLocalesUtf8 != null)) '' + --set-default LOCALE_ARCHIVE ${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive \ + ''} --prefix PATH ":" "$out/bin:${inputs.cachix.packages.${pkgs.stdenv.system}.cachix}/bin" # TODO: problematic for our library... wrapProgram $out/bin/devenv-run-tests \ --set DEVENV_NIX ${inputs.nix.packages.${pkgs.stdenv.system}.nix} \ + ${pkgs.lib.optionalString (pkgs.stdenv.isLinux && (pkgs.glibcLocalesUtf8 != null)) '' + --set-default LOCALE_ARCHIVE ${pkgs.glibcLocalesUtf8}/lib/locale/locale-archive \ + ''} --prefix PATH ":" "$out/bin:${inputs.cachix.packages.${pkgs.stdenv.system}.cachix}/bin" # Generate manpages