3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/sql/postgresql/ext/pgrouting.nix
Bas van Dijk 517c52ec2e
postgresql: always create the $out/bin directory
This is needed because some PostgreSQL plugins don't have a bin
directory. If only these plugins are listed in cfg.extraPlugins buildEnv
will turn $out/bin into a symbolic link to ${pg}/bin. Lateron we try to
rm $out/bin/{pg_config,postgres,pg_ctl} which will then fail because
$out/bin will be read-only.
2019-05-04 14:11:52 -05:00

31 lines
936 B
Nix

{ 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 = ''
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;
};
}