mbpoll: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-22 12:12:00 -03:00
parent b5d4fb5c91
commit 7482ed02c7

View File

@@ -4,6 +4,7 @@
cmake,
pkg-config,
fetchFromGitHub,
fetchpatch,
libmodbus,
}:
@@ -18,6 +19,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-rO3j/p7MABlxcwRAZm26u7wgODGFTtetSDhPWPzTuEA=";
};
patches = [
(fetchpatch {
name = "cmake4-fix";
url = "https://github.com/epsilonrt/mbpoll/commit/baad0efca89f0d8fe370591283d87a6e8e7dee4c.patch?full_index=1";
hash = "sha256-QwrfNeGbirYSrXvGI1lItwNBDN2d6VDF8yjvgcGELxE=";
})
];
buildInputs = [ libmodbus ];
nativeBuildInputs = [
cmake