valhalla: fix build with protobuf 3.18+

This commit is contained in:
Ryan Burns 2021-09-23 01:21:47 -07:00
parent e12802213e
commit 6a01398ccc

View file

@ -14,6 +14,15 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};
# https://github.com/valhalla/valhalla/issues/2119
postPatch = ''
for f in valhalla/mjolnir/transitpbf.h \
src/mjolnir/valhalla_query_transit.cc; do
substituteInPlace $f --replace 'SetTotalBytesLimit(limit, limit)' \
'SetTotalBytesLimit(limit)'
done
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
zlib curl protobuf prime-server boost sqlite libspatialite