2020-05-23 10:20:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, postgresql, perl, cmake, boost }:
|
2019-04-11 02:30:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgrouting";
|
2020-11-21 04:20:00 +00:00
|
|
|
version = "3.1.1";
|
2019-04-11 02:30:30 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
2020-05-23 10:20:00 +01:00
|
|
|
buildInputs = [ postgresql boost ];
|
2019-04-11 02:30:30 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgRouting";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-21 04:20:00 +00:00
|
|
|
sha256 = "1wj583c4iipsss75czww176aqa8sncsvcx1i0d6cb41v03iq5acf";
|
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";
|
2020-04-01 02:11:51 +01: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 02:30:30 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|