Skip to content

Commit

Permalink
[release-24.11] sage: backport Darwin sandbox locale fix (#370849)
Browse files Browse the repository at this point in the history
  • Loading branch information
collares authored Jan 4, 2025
2 parents 9f8c0d4 + a5db615 commit 2193d63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/by-name/sa/sage/sage-tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ stdenv.mkDerivation {
makeWrapper "${sage-with-env}/bin/sage" "$out/bin/sage"
'';

env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# prevent warnings about assigning LC_* to "C" resulting in broken tests
# when run in darwin sandbox
LC_ALL = "en_US.UTF-8";
};

doInstallCheck = true;
installCheckPhase = ''
export HOME="$TMPDIR/sage-home"
Expand Down

0 comments on commit 2193d63

Please sign in to comment.