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 90 '' else '' 91 91 substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \ 92 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 - ''); 93 + '')); 98 94 99 95 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ 100 96 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit ··· 190 186 191 187 buildInputs = optionals stdenv.isDarwin (with darwin; [ 192 188 cups 189 + apple_sdk.libs.sandbox 193 190 194 191 # `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py` 195 192 # to get some information about the host platform. ··· 205 202 shift 206 203 done 207 204 '') 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 205 ]); 214 - 215 - __impureHostDeps = optional stdenv.isDarwin "/usr/lib/libsandbox.1.dylib"; 216 206 217 207 dontUseNinjaBuild = true; 218 208 dontUseNinjaInstall = true;