1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/servers/osrm-backend/default.nix
Emily d2f4b62a68 osrm-backend: 5.27.1 -> 5.27.1-unstable-2024-11-03
Includes fixes for newer versions of GCC and Boost and obsoletes our
patch and most of our flags.

Upstream has not cut a release tag in over two years. They have
signalled a desire to make a new release this year, but have limited
resources to do so:

* <https://github.com/Project-OSRM/osrm-backend/issues/6747>
* <https://github.com/Project-OSRM/osrm-backend/issues/6778>
* <https://github.com/Project-OSRM/osrm-backend/issues/7028>

The NixOS test passes, so I think this should be okay and leave this
package in a healthier state than it is currently in.
2024-11-25 17:07:50 +00:00

67 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
pkg-config,
bzip2,
libxml2,
libzip,
boost,
lua,
luabind,
tbb,
expat,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "osrm-backend";
version = "5.27.1-unstable-2024-11-03";
src = fetchFromGitHub {
owner = "Project-OSRM";
repo = "osrm-backend";
rev = "3614af7f6429ee35c3f2e836513b784a74664ab6";
hash = "sha256-iix++G49cC13wZGZIpXu1SWGtVAcqpuX3GhsIaETzUU=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
bzip2
libxml2
libzip
boost
lua
luabind
tbb
expat
];
# Needed with GCC 12
env.NIX_CFLAGS_COMPILE = "-Wno-error=uninitialized";
postInstall = ''
mkdir -p $out/share/osrm-backend
cp -r ../profiles $out/share/osrm-backend/profiles
'';
passthru.tests = {
inherit (nixosTests) osrm-backend;
};
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";
changelog = "https://github.com/Project-OSRM/osrm-backend/blob/master/CHANGELOG.md";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ erictapen ];
platforms = lib.platforms.unix;
};
}