2015-03-07 11:31:50 +00:00
|
|
|
{stdenv, fetchurl, cmake, luabind, libosmpbf, stxxl, tbb, boost, expat, protobuf, bzip2, zlib, substituteAll}:
|
2015-02-22 13:31:35 +00: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 11:31:50 +00:00
|
|
|
patches = [
|
|
|
|
./4.5.0-openmp.patch
|
|
|
|
(substituteAll {
|
|
|
|
src = ./4.5.0-default-profile-path.template.patch;
|
|
|
|
})
|
|
|
|
];
|
2015-02-22 13:31:35 +00:00
|
|
|
|
2015-03-17 22:05:13 +00:00
|
|
|
buildInputs = [ cmake luabind libosmpbf stxxl tbb boost expat protobuf bzip2 zlib ];
|
2015-02-22 13:31:35 +00:00
|
|
|
|
2015-03-07 11:31:50 +00:00
|
|
|
postInstall = "mkdir -p $out/share/osrm-backend && cp -r ../profiles $out/share/osrm-backend/profiles";
|
|
|
|
|
2015-02-22 13:31:35 +00: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;
|
|
|
|
};
|
|
|
|
}
|