Skip to content

Commit

Permalink
package: set locale archive if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Nov 18, 2024
1 parent 7b90578 commit 0e2457f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e2457f

Please sign in to comment.