2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, perl, cmake, boost }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgrouting";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.3.1";
|
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}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-QOIuJM0d1l56ESzTjtm5IIiZx+2oYrO5mIhkAD8kFpQ=";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A PostgreSQL/PostGIS extension that provides geospatial routing functionality";
|
|
|
|
homepage = "https://pgrouting.org/";
|
2020-11-24 20:58:05 +00:00
|
|
|
changelog = "https://github.com/pgRouting/pgrouting/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.steve-chavez ];
|
|
|
|
platforms = postgresql.meta.platforms;
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|