bazel: remove wrapProgram and move it to system configuration

This way, custom configurations are all at the same place. Also, user
may override these settings using the command line.

+1 -2
+1 -2
pkgs/development/tools/build-managers/bazel/default.nix
··· 132 text = '' 133 build --override_repository=${remote_java_tools.name}=${remote_java_tools} 134 build --distdir=${distDir} 135 ''; 136 }; 137 ··· 483 # if it can’t find something in tools, it calls $out/bin/bazel-real 484 cp ./bazel_src/scripts/packages/bazel.sh $out/bin/bazel 485 mv ./bazel_src/output/bazel $out/bin/bazel-real 486 - 487 - wrapProgram "$out/bin/bazel" --add-flags --server_javabase="${runJdk}" 488 489 # shell completion files 490 mkdir -p $out/share/bash-completion/completions $out/share/zsh/site-functions
··· 132 text = '' 133 build --override_repository=${remote_java_tools.name}=${remote_java_tools} 134 build --distdir=${distDir} 135 + startup --server_javabase=${runJdk} 136 ''; 137 }; 138 ··· 484 # if it can’t find something in tools, it calls $out/bin/bazel-real 485 cp ./bazel_src/scripts/packages/bazel.sh $out/bin/bazel 486 mv ./bazel_src/output/bazel $out/bin/bazel-real 487 488 # shell completion files 489 mkdir -p $out/share/bash-completion/completions $out/share/zsh/site-functions