Skip to content

Commit

Permalink
sage.tests: darwin sandbox fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paparodeo committed Jan 4, 2025
1 parent 9e64753 commit 01299c0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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,14 @@ 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";
};

# allow singular tests to pass in darwin sandbox
__darwinAllowLocalNetworking = true;
doInstallCheck = true;
installCheckPhase = ''
export HOME="$TMPDIR/sage-home"
Expand Down

0 comments on commit 01299c0

Please sign in to comment.