Unverified Commit 0f597a39 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

mbpoll: fix build with cmake4 (#454571)

parents 9859377c 7482ed02
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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