Unverified Commit 17b4ad7c authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

Merge pull request #217587 from winterqt/build-dotnet-module-darwin-sandbox

buildDotnetModule: fix sandboxed builds on darwin
parents 656eb415 8c8524bc
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -284,4 +284,8 @@ stdenvNoCC.mkDerivation (args // {
  } // args.passthru or { };

  meta = (args.meta or { }) // { inherit platforms; };
})
}
  # ICU tries to unconditionally load files from /usr/share/icu on Darwin, which makes builds fail
  # in the sandbox, so disable ICU on Darwin. This, as far as I know, shouldn't cause any built packages
  # to behave differently, just the dotnet build tool.
  // lib.optionalAttrs stdenvNoCC.isDarwin { DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1; })