2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, perl, cmake, boost }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgrouting";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.6.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
2020-05-29 06:06:01 +00:00
|
|
|
buildInputs = [ postgresql boost ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgRouting";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "pgrouting";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-r+OkhieKTiOfYSnDbiy3p8V8cgb8I1+bneFwItDfDYo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D lib/*.so -t $out/lib
|
|
|
|
install -D sql/pgrouting--${version}.sql -t $out/share/postgresql/extension
|
|
|
|
install -D sql/common/pgrouting.control -t $out/share/postgresql/extension
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "PostgreSQL/PostGIS extension that provides geospatial routing functionality";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://pgrouting.org/";
|
2020-11-24 20:58:05 +00:00
|
|
|
changelog = "https://github.com/pgRouting/pgrouting/releases/tag/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; teams.geospatial.members ++ [ steve-chavez ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = postgresql.meta.platforms;
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|