mbpoll: fix build with cmake4 (#454571)

This commit is contained in:
Yohann Boniface
2025-10-31 22:58:18 +00:00
committed by GitHub

View File

@@ -4,6 +4,7 @@
cmake, cmake,
pkg-config, pkg-config,
fetchFromGitHub, fetchFromGitHub,
fetchpatch,
libmodbus, libmodbus,
}: }:
@@ -18,6 +19,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-rO3j/p7MABlxcwRAZm26u7wgODGFTtetSDhPWPzTuEA="; 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 ]; buildInputs = [ libmodbus ];
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake