···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- '');
9899 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
100 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit
···190191 buildInputs = optionals stdenv.isDarwin (with darwin; [
192 cups
0193194 # `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";
216217 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+ ''));
00009495 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
96 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit
···186187 buildInputs = optionals stdenv.isDarwin (with darwin; [
188 cups
189+ apple_sdk.libs.sandbox
190191 # `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 '')
00000205 ]);
00206207 dontUseNinjaBuild = true;
208 dontUseNinjaInstall = true;