libxc: use upstream patch for cmake compatibility

This commit is contained in:
Phillip Seeber
2025-12-19 15:10:10 +01:00
parent ed9857820a
commit 990a5022f7
+9 -1
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitLab,
fetchpatch,
cmake,
gfortran,
perl,
@@ -26,6 +27,14 @@ stdenv.mkDerivation rec {
hash = versionHashes."${version}";
};
patches = [
# Fix build with newer CMake versions
(fetchpatch {
url = "https://gitlab.com/libxc/libxc/-/commit/450202adb8a3d698841dca853f2999b1befd932e.patch";
sha256 = "sha256-XDt7+TzszSu+X6/PS+T8Q9BP76+bAXC9FzkA6ueo/OA=";
})
];
# Timeout increase has already been included upstream in master.
# Check upon updates if this can be removed.
postPatch = ''
@@ -49,7 +58,6 @@ stdenv.mkDerivation rec {
'';
cmakeFlags = [
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
"-DENABLE_FORTRAN=ON"
"-DBUILD_SHARED_LIBS=ON"
"-DENABLE_XHOST=OFF"