1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

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

buildDotnetModule: fix sandboxed builds on darwin
This commit is contained in:
7c6f434c 2023-04-17 14:08:21 +00:00 committed by GitHub
commit 17b4ad7c2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; })