dnf-plugins-core: fix build with cmake 4 (#449477)

This commit is contained in:
Masum Reza
2025-10-07 12:44:20 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
# dependencies
cmake,
@@ -38,6 +39,14 @@ buildPythonPackage rec {
hash = "sha256-nZyM61bQ9L4t3/fa9cP+xo9ke00e6w2Obt80OpqOG8A=";
};
patches = [
# Fix building with CMake 4
(fetchpatch {
url = "https://github.com/rpm-software-management/dnf-plugins-core/commit/1f5d725d857b61760174dd09165e885dd63762c5.patch?full_index=1";
hash = "sha256-dI6tVokgenb4aaLH5YuG3EZ1Ehgf/NwwPprcDWcHt2Q=";
})
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "SYSCONFDIR /etc" "SYSCONFDIR $out/etc" \