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.
This commit is contained in:
Florian Klink
2025-10-06 09:57:53 +03:00
parent 7f1d7ecd4d
commit c18cbf88ca
+4
View File
@@ -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";