Merge pull request #59292 from steve-chavez/pgrouting

pgrouting: init at 2.6.2
This commit is contained in:
Mario Rodas 2019-04-15 19:38:12 -05:00 committed by GitHub
commit 7bfe30917a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, postgresql, perl, cmake, boost, gmp, cgal, mpfr }:
stdenv.mkDerivation rec {
pname = "pgrouting";
version = "2.6.2";
nativeBuildInputs = [ cmake perl ];
buildInputs = [ postgresql boost gmp cgal mpfr ];
src = fetchFromGitHub {
owner = "pgRouting";
repo = pname;
rev = "v${version}";
sha256 = "09xy5pmiwq0lxf2m8p4q5r892mfmn32vf8m75p84jnz4707z1l0j";
};
installPhase = ''
mkdir -p $out/bin # for buildEnv, see https://github.com/NixOS/nixpkgs/issues/22653
install -D lib/*.so -t $out/lib
install -D sql/pgrouting--${version}.sql -t $out/share/extension
install -D sql/common/pgrouting.control -t $out/share/extension
'';
meta = with stdenv.lib; {
description = "A PostgreSQL/PostGIS extension that provides geospatial routing functionality";
homepage = https://pgrouting.org/;
maintainers = [ maintainers.steve-chavez ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}

View File

@ -36,4 +36,6 @@ self: super: {
tsearch_extras = super.callPackage ./ext/tsearch_extras.nix { };
tds_fdw = super.callPackage ./ext/tds_fdw.nix { };
pgrouting = super.callPackage ./ext/pgrouting.nix { };
}