depot/third_party/nixpkgs/pkgs/servers/sql/postgresql/ext/pgrouting.nix

37 lines
841 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
postgresql,
perl,
cmake,
boost,
buildPostgresqlExtension,
}:
buildPostgresqlExtension rec {
pname = "pgrouting";
version = "3.7.0";
nativeBuildInputs = [
cmake
perl
];
buildInputs = [ boost ];
src = fetchFromGitHub {
owner = "pgRouting";
repo = "pgrouting";
rev = "v${version}";
hash = "sha256-IwH8bEdyJyPMFYtCfWLRr+jVmS5sOr5QFOhGykGPYh4=";
};
meta = with lib; {
description = "PostgreSQL/PostGIS extension that provides geospatial routing functionality";
homepage = "https://pgrouting.org/";
changelog = "https://github.com/pgRouting/pgrouting/releases/tag/v${version}";
maintainers = with maintainers; teams.geospatial.members ++ [ steve-chavez ];
platforms = postgresql.meta.platforms;
license = licenses.gpl2Plus;
};
}