2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, perl, cmake, boost }:
|
2019-04-11 01:30:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgrouting";
|
2021-01-31 01:55:31 +00:00
|
|
|
version = "3.1.3";
|
2019-04-11 01:30:30 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
2020-05-23 09:20:00 +00:00
|
|
|
buildInputs = [ postgresql boost ];
|
2019-04-11 01:30:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgRouting";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-31 01:55:31 +00:00
|
|
|
sha256 = "sha256-ahDQ+nSTeIsdjID/ZwiGZCVBzOf0/oQs3SYsFYEEoxY=";
|
2019-04-11 01:30:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D lib/*.so -t $out/lib
|
2019-07-01 14:18:03 +00:00
|
|
|
install -D sql/pgrouting--${version}.sql -t $out/share/postgresql/extension
|
|
|
|
install -D sql/common/pgrouting.control -t $out/share/postgresql/extension
|
2019-04-11 01:30:30 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-11 01:30:30 +00:00
|
|
|
description = "A PostgreSQL/PostGIS extension that provides geospatial routing functionality";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pgrouting.org/";
|
2020-11-21 04:20:00 +00:00
|
|
|
changelog = "https://github.com/pgRouting/pgrouting/releases/tag/v${version}";
|
2019-04-11 01:30:30 +00:00
|
|
|
maintainers = [ maintainers.steve-chavez ];
|
2019-09-13 09:22:00 +00:00
|
|
|
platforms = postgresql.meta.platforms;
|
2021-01-31 01:55:32 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-04-11 01:30:30 +00:00
|
|
|
};
|
|
|
|
}
|