93ffb054db
GitOrigin-RevId: 6f0c00907bbd81b47052eef59f7b284926a77289
31 lines
1 KiB
Nix
31 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, postgresql, perl, cmake, boost }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgrouting";
|
|
version = "3.1.1";
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
buildInputs = [ postgresql boost ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgRouting";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1wj583c4iipsss75czww176aqa8sncsvcx1i0d6cb41v03iq5acf";
|
|
};
|
|
|
|
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/";
|
|
changelog = "https://github.com/pgRouting/pgrouting/releases/tag/v${version}";
|
|
maintainers = [ maintainers.steve-chavez ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.gpl2;
|
|
};
|
|
}
|