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.
This commit is contained in:
Luflosi
2026-03-08 14:17:01 +01:00
parent b6f11389ca
commit 9a976eea26
+9
View File
@@ -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