Skip to content

Commit

Permalink
sage: backport Darwin sandbox locale fix
Browse files Browse the repository at this point in the history
Co-Authored-By: Reno Dakota <[email protected]>
  • Loading branch information
collares and paparodeo committed Jan 4, 2025
1 parent 0e59664 commit a5db615
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 a5db615

Please sign in to comment.