Skip to content

Commit 941b943

Browse files
committed
awesome: Fix build with CMake 4
NixOS/nixpkgs@72bf281
1 parent 229c806 commit 941b943

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/awesome/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ in
5353
postPatch = ''
5454
patchShebangs tests/examples/_postprocess.lua
5555
patchShebangs tests/examples/_postprocess_cleanup.lua
56+
57+
# Fix build with CMake 4
58+
# https://github.com/awesomeWM/awesome/pull/4030#issuecomment-3370822668
59+
substituteInPlace {,tests/examples/}CMakeLists.txt \
60+
--replace-fail 'cmake_minimum_required(VERSION 3.0.0)' 'cmake_minimum_required(VERSION 3.10)' \
61+
--replace-warn 'cmake_policy(VERSION 2.6)' 'cmake_policy(VERSION 3.10)'
5662
'';
5763

5864
nativeBuildInputs = [

0 commit comments

Comments
 (0)