qtwebengine: switch to pure sandbox on darwin

authored by Andrew Childs and committed by Dmitry Kalinkin a5979a4f 5268bf50

+2 -12
+2 -12
pkgs/development/libraries/qt-5/modules/qtwebengine.nix
··· 90 '' else '' 91 substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \ 92 --replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]" 93 - '') 94 - + '' 95 - substituteInPlace src/3rdparty/chromium/sandbox/mac/BUILD.gn \ 96 - --replace 'libs = [ "sandbox" ]' 'libs = [ "/usr/lib/libsandbox.1.dylib" ]' 97 - ''); 98 99 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 100 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit ··· 190 191 buildInputs = optionals stdenv.isDarwin (with darwin; [ 192 cups 193 194 # `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py` 195 # to get some information about the host platform. ··· 205 shift 206 done 207 '') 208 - 209 - # For sandbox.h include 210 - (runCommand "MacOS_SDK_sandbox.h" {} '' 211 - install -Dm444 "${lib.getDev darwin.apple_sdk.sdk}"/include/sandbox.h "$out"/include/sandbox.h 212 - '') 213 ]); 214 - 215 - __impureHostDeps = optional stdenv.isDarwin "/usr/lib/libsandbox.1.dylib"; 216 217 dontUseNinjaBuild = true; 218 dontUseNinjaInstall = true;
··· 90 '' else '' 91 substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \ 92 --replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]" 93 + '')); 94 95 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 96 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit ··· 186 187 buildInputs = optionals stdenv.isDarwin (with darwin; [ 188 cups 189 + apple_sdk.libs.sandbox 190 191 # `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py` 192 # to get some information about the host platform. ··· 202 shift 203 done 204 '') 205 ]); 206 207 dontUseNinjaBuild = true; 208 dontUseNinjaInstall = true;