···99# updater
1010, python27, python3, writeScript
1111# Apple dependencies
1212-, cctools, libcxx, CoreFoundation, CoreServices, Foundation
1212+, cctools, libcxx, sigtool, CoreFoundation, CoreServices, Foundation
1313# Allow to independently override the jdks used to build and run respectively
1414, buildJdk, runJdk
1515, runtimeShell
···211211212212 # disable suspend detection during a build inside Nix as this is
213213 # not available inside the darwin sandbox
214214- ../bazel_darwin_sandbox.patch
214214+ ./bazel_darwin_sandbox.patch
215215 ] ++ lib.optional enableNixHacks ../nix-hacks.patch;
216216217217···382382 # clang installed from Xcode has a compatibility wrapper that forwards
383383 # invocations of gcc to clang, but vanilla clang doesn't
384384 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
385385-385385+ 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
386386 sed -i -e 's;"/usr/bin/libtool";_find_generic(repository_ctx, "libtool", "LIBTOOL", overriden_tools);g' tools/cpp/unix_cc_configure.bzl
387387 wrappers=( tools/cpp/osx_cc_wrapper.sh tools/cpp/osx_cc_wrapper.sh.tpl )
388388 for wrapper in "''${wrappers[@]}"; do