2019-04-11 02:30:30 +01:00
|
|
|
{ stdenv, fetchFromGitHub, postgresql, perl, cmake, boost, gmp, cgal, mpfr }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgrouting";
|
2019-09-13 10:20:00 +01:00
|
|
|
version = "2.6.3";
|
2019-04-11 02:30:30 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [ postgresql boost gmp cgal mpfr ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgRouting";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-09-13 10:20:00 +01:00
|
|
|
sha256 = "0jdjb8476vjgc7i26v2drcqjvhdbsk1wx243fddffg169nb664ml";
|
2019-04-11 02:30:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D lib/*.so -t $out/lib
|
2019-07-01 15:18:03 +01: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 02:30:30 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A PostgreSQL/PostGIS extension that provides geospatial routing functionality";
|
|
|
|
homepage = https://pgrouting.org/;
|
|
|
|
maintainers = [ maintainers.steve-chavez ];
|
2019-09-13 10:22:00 +01:00
|
|
|
platforms = postgresql.meta.platforms;
|
2019-04-11 02:30:30 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|