···9# updater
10, python27, python3, writeScript
11# Apple dependencies
12-, cctools, libcxx, CoreFoundation, CoreServices, Foundation
13# Allow to independently override the jdks used to build and run respectively
14, buildJdk, runJdk
15, runtimeShell
···211212 # disable suspend detection during a build inside Nix as this is
213 # not available inside the darwin sandbox
214- ../bazel_darwin_sandbox.patch
215 ] ++ lib.optional enableNixHacks ../nix-hacks.patch;
216217···382 # clang installed from Xcode has a compatibility wrapper that forwards
383 # invocations of gcc to clang, but vanilla clang doesn't
384 sed -i -e 's;_find_generic(repository_ctx, "gcc", "CC", overriden_tools);_find_generic(repository_ctx, "clang", "CC", overriden_tools);g' tools/cpp/unix_cc_configure.bzl
385-386 sed -i -e 's;"/usr/bin/libtool";_find_generic(repository_ctx, "libtool", "LIBTOOL", overriden_tools);g' tools/cpp/unix_cc_configure.bzl
387 wrappers=( tools/cpp/osx_cc_wrapper.sh tools/cpp/osx_cc_wrapper.sh.tpl )
388 for wrapper in "''${wrappers[@]}"; do
···9# updater
10, python27, python3, writeScript
11# Apple dependencies
12+, cctools, libcxx, sigtool, CoreFoundation, CoreServices, Foundation
13# Allow to independently override the jdks used to build and run respectively
14, buildJdk, runJdk
15, runtimeShell
···211212 # disable suspend detection during a build inside Nix as this is
213 # not available inside the darwin sandbox
214+ ./bazel_darwin_sandbox.patch
215 ] ++ lib.optional enableNixHacks ../nix-hacks.patch;
216217···382 # clang installed from Xcode has a compatibility wrapper that forwards
383 # invocations of gcc to clang, but vanilla clang doesn't
384 sed -i -e 's;_find_generic(repository_ctx, "gcc", "CC", overriden_tools);_find_generic(repository_ctx, "clang", "CC", overriden_tools);g' tools/cpp/unix_cc_configure.bzl
385+ sed -i -e 's;env -i codesign --identifier $@ --force --sign;env -i CODESIGN_ALLOCATE=${cctools}/bin/${cctools.targetPrefix}codesign_allocate ${sigtool}/bin/codesign --identifier $@ --force -s;g' tools/osx/BUILD
386 sed -i -e 's;"/usr/bin/libtool";_find_generic(repository_ctx, "libtool", "LIBTOOL", overriden_tools);g' tools/cpp/unix_cc_configure.bzl
387 wrappers=( tools/cpp/osx_cc_wrapper.sh tools/cpp/osx_cc_wrapper.sh.tpl )
388 for wrapper in "''${wrappers[@]}"; do