Merge pull request #111975 from teto/bazel-execlog
bazel: add execlog parser
This commit is contained in:
commit
810d22fb35
@ -62,6 +62,7 @@ let
|
|||||||
srcs.rules_cc
|
srcs.rules_cc
|
||||||
srcs.rules_java
|
srcs.rules_java
|
||||||
srcs.rules_proto
|
srcs.rules_proto
|
||||||
|
srcs.com_google_protobuf
|
||||||
]);
|
]);
|
||||||
|
|
||||||
distDir = runCommand "bazel-deps" {} ''
|
distDir = runCommand "bazel-deps" {} ''
|
||||||
@ -527,6 +528,13 @@ stdenv.mkDerivation rec {
|
|||||||
--output=./bazel_src/output/bazel-complete.bash \
|
--output=./bazel_src/output/bazel-complete.bash \
|
||||||
--prepend=./bazel_src/scripts/bazel-complete-header.bash \
|
--prepend=./bazel_src/scripts/bazel-complete-header.bash \
|
||||||
--prepend=./bazel_src/scripts/bazel-complete-template.bash
|
--prepend=./bazel_src/scripts/bazel-complete-template.bash
|
||||||
|
|
||||||
|
# need to change directory for bazel to find the workspace
|
||||||
|
cd ./bazel_src
|
||||||
|
# build execlog tooling
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
./output/bazel build src/tools/execlog:parser_deploy.jar
|
||||||
|
cd -
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -537,7 +545,15 @@ stdenv.mkDerivation rec {
|
|||||||
# The binary _must_ exist with this naming if your project contains a .bazelversion
|
# The binary _must_ exist with this naming if your project contains a .bazelversion
|
||||||
# file.
|
# file.
|
||||||
cp ./bazel_src/scripts/packages/bazel.sh $out/bin/bazel
|
cp ./bazel_src/scripts/packages/bazel.sh $out/bin/bazel
|
||||||
|
|
||||||
|
mkdir $out/share
|
||||||
|
cp ./bazel_src/bazel-bin/src/tools/execlog/parser_deploy.jar $out/share/parser_deploy.jar
|
||||||
mv ./bazel_src/output/bazel $out/bin/bazel-${version}-${system}-${arch}
|
mv ./bazel_src/output/bazel $out/bin/bazel-${version}-${system}-${arch}
|
||||||
|
cat <<EOF > $out/bin/bazel-execlog
|
||||||
|
#!${runtimeShell} -e
|
||||||
|
${runJdk}/bin/java -jar $out/share/parser_deploy.jar \$@
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/bazel-execlog
|
||||||
|
|
||||||
# shell completion files
|
# shell completion files
|
||||||
installShellCompletion --bash \
|
installShellCompletion --bash \
|
||||||
|
@ -560,6 +560,13 @@ stdenv.mkDerivation rec {
|
|||||||
${python3}/bin/python3 ./bazel_src/scripts/generate_fish_completion.py \
|
${python3}/bin/python3 ./bazel_src/scripts/generate_fish_completion.py \
|
||||||
--bazel=./bazel_src/output/bazel \
|
--bazel=./bazel_src/output/bazel \
|
||||||
--output=./bazel_src/output/bazel-complete.fish
|
--output=./bazel_src/output/bazel-complete.fish
|
||||||
|
|
||||||
|
# need to change directory for bazel to find the workspace
|
||||||
|
cd ./bazel_src
|
||||||
|
# build execlog tooling
|
||||||
|
export HOME=$(mktemp -d)
|
||||||
|
./output/bazel build src/tools/execlog:parser_deploy.jar
|
||||||
|
cd -
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -572,6 +579,14 @@ stdenv.mkDerivation rec {
|
|||||||
cp ./bazel_src/scripts/packages/bazel.sh $out/bin/bazel
|
cp ./bazel_src/scripts/packages/bazel.sh $out/bin/bazel
|
||||||
mv ./bazel_src/output/bazel $out/bin/bazel-${version}-${system}-${arch}
|
mv ./bazel_src/output/bazel $out/bin/bazel-${version}-${system}-${arch}
|
||||||
|
|
||||||
|
mkdir $out/share
|
||||||
|
cp ./bazel_src/bazel-bin/src/tools/execlog/parser_deploy.jar $out/share/parser_deploy.jar
|
||||||
|
cat <<EOF > $out/bin/bazel-execlog
|
||||||
|
#!${runtimeShell} -e
|
||||||
|
${runJdk}/bin/java -jar $out/share/parser_deploy.jar \$@
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/bazel-execlog
|
||||||
|
|
||||||
# shell completion files
|
# shell completion files
|
||||||
installShellCompletion --bash \
|
installShellCompletion --bash \
|
||||||
--name bazel.bash \
|
--name bazel.bash \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user