Unverified Commit c13d9ebd authored by jopejoe1's avatar jopejoe1 Committed by GitHub
Browse files

xygrib: fix build with cmake4 (#453664)

parents 11e463e0 89f16e1e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -42,6 +42,11 @@ stdenv.mkDerivation {
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DLIBNOVA_LIBRARY=${libnova}/lib/libnova.dylib" ];

  postPatch = ''
    substituteInPlace CMakeLists.txt \
      --replace-fail "cmake_minimum_required (VERSION 3.1.0)" "cmake_minimum_required(VERSION 3.10)"
  '';

  postInstall =
    if stdenv.hostPlatform.isDarwin then
      ''