2015-03-07 12:31:50 +01:00
|
|
|
{stdenv, fetchurl, cmake, luabind, libosmpbf, stxxl, tbb, boost, expat, protobuf, bzip2, zlib, substituteAll}:
|
2015-02-22 14:31:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "osrm-backend-4.5.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/Project-OSRM/osrm-backend/archive/v4.5.0.tar.gz";
|
|
|
|
sha256 = "af61e883051f2ecb73520ace6f17cc6da30edc413208ff7cf3d87992eca0756c";
|
|
|
|
};
|
|
|
|
|
2015-03-07 12:31:50 +01:00
|
|
|
patches = [
|
|
|
|
./4.5.0-openmp.patch
|
|
|
|
(substituteAll {
|
|
|
|
src = ./4.5.0-default-profile-path.template.patch;
|
|
|
|
})
|
|
|
|
];
|
2015-02-22 14:31:35 +01:00
|
|
|
|
2015-03-17 23:05:13 +01:00
|
|
|
buildInputs = [ cmake luabind libosmpbf stxxl tbb boost expat protobuf bzip2 zlib ];
|
2015-02-22 14:31:35 +01:00
|
|
|
|
2015-03-07 12:31:50 +01:00
|
|
|
postInstall = "mkdir -p $out/share/osrm-backend && cp -r ../profiles $out/share/osrm-backend/profiles";
|
|
|
|
|
2015-02-22 14:31:35 +01:00
|
|
|
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.";
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|