2019-04-11 01:30:30 +00:00
|
|
|
{ stdenv, fetchFromGitHub, postgresql, perl, cmake, boost, gmp, cgal, mpfr }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgrouting";
|
|
|
|
version = "2.6.2";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [ postgresql boost gmp cgal mpfr ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgRouting";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09xy5pmiwq0lxf2m8p4q5r892mfmn32vf8m75p84jnz4707z1l0j";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A PostgreSQL/PostGIS extension that provides geospatial routing functionality";
|
|
|
|
homepage = https://pgrouting.org/;
|
|
|
|
maintainers = [ maintainers.steve-chavez ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|