2020-05-29 06:06:01 +00:00
|
|
|
{ stdenv, fetchFromGitHub, postgresql, perl, cmake, boost }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgrouting";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "3.1.0";
|
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";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0sdyq0a98snmcq6g6mgmadlz6cgvacivv34943azhnzspa3iy409";
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A PostgreSQL/PostGIS extension that provides geospatial routing functionality";
|
|
|
|
homepage = "https://pgrouting.org/";
|
|
|
|
maintainers = [ maintainers.steve-chavez ];
|
|
|
|
platforms = postgresql.meta.platforms;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|