xdg-utils-cxx: fix build with CMake 4

Co-authored-by: K900 <me@0upti.me>
This commit is contained in:
Emily
2025-09-19 16:29:10 +01:00
co-authored by K900
parent b1a62f956d
commit 9f77ea85a7
@@ -19,6 +19,14 @@ stdenv.mkDerivation rec {
cmake
];
# Fix the build with CMake 4.
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail \
'cmake_minimum_required(VERSION 3.0)' \
'cmake_minimum_required(VERSION 3.10)'
'';
meta = with lib; {
description = "Implementation of the FreeDesktop specifications to be used in c++ projects";
homepage = "https://github.com/azubieta/xdg-utils-cxx";