Skip to content

Commit 72bf281

Browse files
committed
1 parent 4ec104a commit 72bf281

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/applications/window-managers/awesome/default.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ stdenv.mkDerivation rec {
7272
})
7373
];
7474

75+
# Fix build with CMake 4
76+
# https://github.com/awesomeWM/awesome/pull/4030#issuecomment-3370822668
77+
postPatch = ''
78+
substituteInPlace {,tests/examples/}CMakeLists.txt \
79+
--replace-fail 'cmake_minimum_required(VERSION 3.0.0)' 'cmake_minimum_required(VERSION 3.10)' \
80+
--replace-warn 'cmake_policy(VERSION 2.6)' 'cmake_policy(VERSION 3.10)'
81+
'';
82+
7583
nativeBuildInputs = [
7684
cmake
7785
doxygen

0 commit comments

Comments
 (0)