Unverified Commit 9a976eea authored by Luflosi's avatar Luflosi
Browse files

osrm-backend: fix build

The latest released version (6.0.0) of osrm-backend does not compile with Boost 1.89.0 (see https://github.com/Project-OSRM/osrm-backend/issues/7219), so apply the patch from https://github.com/Project-OSRM/osrm-backend/pull/7220.
parent b6f11389
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch2,
  cmake,
  pkg-config,
  bzip2,
@@ -26,6 +27,14 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-R2Sx+DbT6gROI8X1fkxqOGbMqgmsnNiw2rUX6gSZuTs=";
  };

  patches = [
    (fetchpatch2 {
      name = "Fix-build-with-Boost-1.89.0.patch";
      url = "https://github.com/Project-OSRM/osrm-backend/commit/a2e159d0d4f6b3922ee0cb058a800230cf90642e.patch?full_index=1";
      hash = "sha256-c+4Ll660jHLnFolehCpZQLca4pmyVsBfjwSY1BHBh40=";
    })
  ];

  nativeBuildInputs = [
    cmake
    pkg-config