From c18cbf88ca78340e050c72b7bc77b7222543d5cd Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 6 Oct 2025 09:23:59 +0300 Subject: [PATCH] libcsptr: fix build with CMake 4.0 Upstream hasn't seen a single commit in the last four years, and there's no `cmake_minimum_required` present in CMakeLists.txt at all, so setting CMAKE_POLICY_VERSION_MINIMUM manually it is. --- pkgs/by-name/li/libcsptr/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/li/libcsptr/package.nix b/pkgs/by-name/li/libcsptr/package.nix index d055ec74479f..1b1e0ba59ac9 100644 --- a/pkgs/by-name/li/libcsptr/package.nix +++ b/pkgs/by-name/li/libcsptr/package.nix @@ -18,6 +18,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; + cmakeFlags = [ + (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.5") + ]; + meta = with lib; { description = "Smart pointer constructs for the (GNU) C programming language"; homepage = "https://github.com/Snaipe/libcsptr";