mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
bazel_4: add bazel-execlog binary
similar to what was done for bazel 3
This commit is contained in:
parent
0b9f90ef5f
commit
ef1045cd64
@ -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…
Reference in New Issue
Block a user