nixpkgs/pkgs/development/tools/build-managers/bazel
Dmitry Ivankov 0f5783f80a bazel_4: init at 4.0.0
Bazel 4 is going to be a long term support release.

Latest version in NixPkgs so far was 3.3.1
There's a need for more recent version
https://github.com/NixOS/nixpkgs/issues/97497

All versions from 3.5.0 to 3.7.1 had some reproducibility issues
as noted in issue above, but there also seems to be
a working PR for 3.7.1 now at
https://github.com/NixOS/nixpkgs/pull/105439

Notable changes from bazel_3 setup:
- put python to default bash path

  For autodetecting python toolchain
  with strict action_env on and without this change
  bazel would fail to autodetect host python.

  There are some repos that define hermetic python
  toolchains, but they aren't easy to use yet. Also
  telling python paths to bazel isn't a 1-liner it
  seems:
  - action_env=PATH would affect cache
  - declaring toolchain via BUILD&WORKSPACE files
    is not per-user but more like per-repo and
    affects cache too

  Using python from nixpkgs shouldn't be too bad
  in the lack of simpler hermetic python toolchain
  options

- bazel_4.updater is bazel on `bazel query` to support
  new constructs in WORKSPACE (load of vars, transitive
  load etc). This is more robust but requires bazel
  to run the updater, using bazel_3 for now. This is
  only needed to bump package version, doesn't introduce
  bazel_4 build dependency on bazel_3

https://blog.bazel.build/2020/11/10/bazel-4.0-announce.html
https://blog.bazel.build/2020/11/10/long-term-support-release.html
https://github.com/bazelbuild/bazel/issues/12455
https://github.com/bazelbuild/bazel/releases/tag/4.0.0
https://blog.bazel.build/2021/01/19/bazel-4-0.html
2021-02-04 20:24:54 +01:00
..
bazel_0_26 bazel_0: fix build on darwin 2020-10-08 16:03:44 +02:00
bazel_0_29 bazel_0: fix build on darwin 2020-10-08 16:03:44 +02:00
bazel_1 bazel_1: fix build on darwin 2020-10-10 15:46:17 +02:00
bazel_3 bazel: Reword comment that memory leaks are acceptable 2021-02-03 10:46:09 +01:00
bazel_4 bazel_4: init at 4.0.0 2021-02-04 20:24:54 +01:00
bazel-remote bazel-remote: Mark as broken on Darwin 2021-02-03 11:51:11 +01:00
buildtools treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
bash-tools-test.nix
bazel_rc.patch
cpp-test.nix
java-test.nix
nix-hacks.patch
protobuf-test.nix
python-bin-path-test.nix
shebang-test.nix
strict_action_env.patch
trim-last-argument-to-gcc-if-empty.patch
update-srcDeps.py bazel: 3.3.1 -> 3.7.1 2021-01-29 21:53:25 +01:00