mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
32 lines
1.0 KiB
Nix
32 lines
1.0 KiB
Nix
{ lib, stdenv, fetchFromGitHub, postgresql, perl, cmake, boost }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgrouting";
|
|
version = "3.2.1";
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
buildInputs = [ postgresql boost ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgRouting";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1zn3yyp4zz14yn2mmqwn7c4m65zfb2nj9zg4qj97ppsahs5xc6vw";
|
|
};
|
|
|
|
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 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.gpl2Plus;
|
|
};
|
|
}
|