bazel_7: Cleanup patchPhase

-26
-26
pkgs/development/tools/build-managers/bazel/bazel_7/default.nix
··· 175 inherit sourceRoot; 176 177 patches = [ 178 - # TODO: Make GSON work, 179 - # In particular, our bazel build cannot emit MODULE.bazel.lock 180 - # it only produces an empty json object `{ }`. 181 - ./serialize_nulls.patch 182 - 183 - # --extra_toolchains defined later should come before the ones defined earlier. 184 - # As-is, this patch also inverts the order of extra_toolchains lists, but it's just a hack 185 - ./extra_toolchains_precedence.patch 186 - 187 - #./toolchain_better_debug.patch 188 - ./toolchain_group_debug.patch 189 - 190 # Remote java toolchains do not work on NixOS because they download binaries, 191 # so we need to use the @local_jdk//:jdk 192 # It could in theory be done by registering @local_jdk//:all toolchains, ··· 395 -e "/bazel_build /a\ --java_runtime_version=local_jdk \\\\" \ 396 -e "/bazel_build /a\ --extra_toolchains=@bazel_tools//tools/jdk:all \\\\" \ 397 398 - #-e "/bazel_build /a\ --action_env=NIX_CFLAGS_COMPILE=\"$NIX_CFLAGS_COMPILE\" \\\\" \ 399 - #-e "/bazel_build /a\ --action_env=NIX_LDFLAGS=\"$NIX_LDFLAGS\" \\\\" \ 400 - #-e "/bazel_build /a\ --host_action_env=NIX_CFLAGS_COMPILE=\"$NIX_CFLAGS_COMPILE\" \\\\" \ 401 - #-e "/bazel_build /a\ --host_action_env=NIX_LDFLAGS=\"$NIX_LDFLAGS\" \\\\" \ 402 - 403 # Also build parser_deploy.jar with bootstrap bazel 404 # TODO: Turn into a proper patch 405 sedVerbose compile.sh \ ··· 506 ${python3}/bin/python3 ./bazel_src/scripts/generate_fish_completion.py \ 507 --bazel=./bazel_src/output/bazel \ 508 --output=./bazel_src/output/bazel-complete.fish 509 - 510 - #echo "Stage 3 - Generate parser_deploy.jar" 511 - # XXX: for now, build in the patched compile.sh script to get all the args right. 512 - ## need to change directory for bazel to find the workspace 513 - #cd ./bazel_src 514 - ## build execlog tooling 515 - #export HOME=$(mktemp -d) 516 - #./output/bazel build src/tools/execlog:parser_deploy.jar 517 - #cd - 518 519 runHook postBuild 520 '';
··· 175 inherit sourceRoot; 176 177 patches = [ 178 # Remote java toolchains do not work on NixOS because they download binaries, 179 # so we need to use the @local_jdk//:jdk 180 # It could in theory be done by registering @local_jdk//:all toolchains, ··· 383 -e "/bazel_build /a\ --java_runtime_version=local_jdk \\\\" \ 384 -e "/bazel_build /a\ --extra_toolchains=@bazel_tools//tools/jdk:all \\\\" \ 385 386 # Also build parser_deploy.jar with bootstrap bazel 387 # TODO: Turn into a proper patch 388 sedVerbose compile.sh \ ··· 489 ${python3}/bin/python3 ./bazel_src/scripts/generate_fish_completion.py \ 490 --bazel=./bazel_src/output/bazel \ 491 --output=./bazel_src/output/bazel-complete.fish 492 493 runHook postBuild 494 '';