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