diff options
author | Randy Eckenrode <randy@largeandhighquality.com> | 2023-05-24 08:28:53 -0400 |
---|---|---|
committer | Randy Eckenrode <randy@largeandhighquality.com> | 2023-06-14 16:57:20 -0400 |
commit | 9065884299b6ab835f72198c85a3d7ffb4a58407 (patch) | |
tree | 7f2977f0fb8d1ad653b4f0e23e64140180f52119 /pkgs/development/libraries/qt-5/modules | |
parent | 50512e605433302fa1261c0c801546e9fca6d643 (diff) |
qt5.qtbase: fix build with Darwin sandbox enabled
Qt requires access to the system ICU data due to its linking against the system CoreFoundation and invoking CF APIs that tries to access it. This manifests as a crash during build when it fails to access the data.
Diffstat (limited to 'pkgs/development/libraries/qt-5/modules')
-rw-r--r-- | pkgs/development/libraries/qt-5/modules/qtbase.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 8b5d497c5e9a0..de73bcbe27724 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -84,6 +84,12 @@ stdenv.mkDerivation (finalAttrs: { propagatedNativeBuildInputs = [ lndir ]; + # libQt5Core links calls CoreFoundation APIs that call into the system ICU. Binaries linked + # against it will crash during build unless they can access `/usr/share/icu/icudtXXl.dat`. + propagatedSandboxProfile = lib.optionalString stdenv.isDarwin '' + (allow file-read* (subpath "/usr/share/icu")) + ''; + enableParallelBuilding = true; outputs = [ "bin" "dev" "out" ]; |