dkh: fix build issue due to cmake 4

This commit is contained in:
Andrew Zah
2025-10-20 02:00:08 +09:00
parent 3e1cfd9234
commit f8ddb0304c
+5 -1
View File
@@ -5,7 +5,6 @@
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation rec {
pname = "dkh";
version = "1.2";
@@ -17,6 +16,11 @@ stdenv.mkDerivation rec {
sha256 = "1wb4qmb9f8rnrwnnw1gdhzx1fmhy628bxfrg56khxy3j5ljxkhck";
};
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.0)" "cmake_minimum_required(VERSION 3.10)"
'';
nativeBuildInputs = [
gfortran
cmake