1212 rustPlatform ,
1313 cmake ,
1414 gn ,
15- go_1_24 ,
1615 openjdk11_headless ,
1716 ninja ,
1817 patchelf ,
3938 # However, the version string is more useful for end-users.
4039 # These are contained in a attrset of their own to make it obvious that
4140 # people should update both.
42- version = "1.35 .2" ;
43- rev = "2c2cd7efd119a5c9028b68a97d88a540248f8d18 " ;
44- hash = "sha256-HhjIewZMOr9hzcnFPIckfK5PIozqdypSdmYgvb7ccds =" ;
41+ version = "1.36 .2" ;
42+ rev = "dc2d3098ae5641555f15c71d5bb5ce0060a8015c " ;
43+ hash = "sha256-ll7gn3y2dUW3kMtbUTjfi7ZTviE87S30ptiRlCPec9Q =" ;
4544 } ;
4645
4746 # these need to be updated for any changes to fetchAttrs
5049 depsHash
5150 else
5251 {
53- x86_64-linux = "sha256-xBSSDxvp6VjZt+Fc62/eP5Z2WWfpkAGl1Z+PupyDpg4 =" ;
54- aarch64-linux = "sha256-2g8x12zkyZyjkv5NubG4bVmiLiN8uoEZ33e6Azd1guw =" ;
52+ x86_64-linux = "sha256-AqXGk6IZ85TFNO7v8KFJOe8Caf1x4xQh/VuhaUq9rB4 =" ;
53+ aarch64-linux = "sha256-l70j1UcVNHGrzzvcqdeLDJUuaLkoLNM2yWCHKY4EShs =" ;
5554 }
5655 . ${ stdenv . system } or ( throw "unsupported system ${ stdenv . system } " ) ;
5756
@@ -76,9 +75,6 @@ buildBazelPackage rec {
7675 # use system Python, not bazel-fetched binary Python
7776 ./0001-nixpkgs-use-system-Python.patch
7877
79- # use system Go, not bazel-fetched binary Go
80- ./0002-nixpkgs-use-system-Go.patch
81-
8278 # use system C/C++ tools
8379 ./0003-nixpkgs-use-system-C-C-toolchains.patch
8480
@@ -124,7 +120,6 @@ buildBazelPackage rec {
124120 cmake
125121 python3
126122 gn
127- go_1_24
128123 jdk
129124 ninja
130125 patchelf
@@ -178,6 +173,10 @@ buildBazelPackage rec {
178173 rm -r $bazelOut/external/local_jdk
179174 rm -r $bazelOut/external/bazel_gazelle_go_repository_tools/bin
180175
176+ # CMake 4.1 drops compatibility with <3.5; bump libevent's floor to avoid configure failure.
177+ sed -i 's/cmake_minimum_required(VERSION 3\\.1.2 FATAL_ERROR)/cmake_minimum_required(VERSION 3.5 FATAL_ERROR)/' \
178+ $bazelOut/external/com_github_libevent_libevent/CMakeLists.txt
179+
181180 # Remove compiled python
182181 find $bazelOut -name '*.pyc' -delete
183182
@@ -200,6 +199,7 @@ buildBazelPackage rec {
200199 dontUseNinjaInstall = true ;
201200 bazel = null ;
202201 preConfigure = ''
202+ export CMAKE_POLICY_VERSION_MINIMUM=3.5
203203 echo "common --repository_cache=\"$bazelOut/external/repository_cache\"" >> .bazelrc
204204 echo "common --repository_disable_download" >> .bazelrc
205205
0 commit comments