2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchFromGitHub, cmake, pkg-config, bzip2, libxml2, libzip, boost, lua, luabind, tbb, expat}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "osrm-backend";
|
2021-09-23 15:35:13 +00:00
|
|
|
version = "5.26.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Project-OSRM";
|
|
|
|
repo = "osrm-backend";
|
2020-10-16 20:44:37 +00:00
|
|
|
rev = "v${version}";
|
2021-09-23 15:35:13 +00:00
|
|
|
sha256 = "sha256-kqRYE26aeq7nCen56TJo3BlyLFWn4NMltsq+re64/VQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ bzip2 libxml2 libzip boost lua luabind tbb expat ];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
patches = [ ./darwin.patch ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2023-02-16 17:41:37 +00:00
|
|
|
# Needed with GCC 12
|
|
|
|
"-Wno-error=stringop-overflow"
|
|
|
|
"-Wno-error=uninitialized"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = "mkdir -p $out/share/osrm-backend && cp -r ../profiles $out/share/osrm-backend/profiles";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/Project-OSRM/osrm-backend/wiki";
|
|
|
|
description = "Open Source Routing Machine computes shortest paths in a graph. It was designed to run well with map data from the Openstreetmap Project";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers;[ erictapen ];
|
2023-04-29 16:46:19 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|