nixpkgs/pkgs/tools/misc/osm2pgsql/default.nix

27 lines
719 B
Nix
Raw Normal View History

2019-07-11 11:06:01 +00:00
{ stdenv, fetchFromGitHub, cmake, expat, proj, bzip2, zlib, boost, postgresql, lua}:
2017-04-17 20:19:41 +00:00
stdenv.mkDerivation rec {
pname = "osm2pgsql";
2019-07-11 11:06:01 +00:00
version = "0.96.0";
2017-04-17 20:19:41 +00:00
2019-07-11 11:06:01 +00:00
src = fetchFromGitHub {
owner = "openstreetmap";
repo = "osm2pgsql";
rev = version;
sha256 = "032cydh8ynaqfhdzmkvgbmqyjql668y6qln1l59l2s3ni9963bbl";
2017-04-17 20:19:41 +00:00
};
2019-07-11 11:06:01 +00:00
nativeBuildInputs = [ cmake ];
buildInputs = [ expat proj bzip2 zlib boost postgresql lua ];
NIX_CFLAGS_COMPILE = [ "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" ];
meta = with stdenv.lib; {
2017-04-17 20:19:41 +00:00
description = "OpenStreetMap data to PostgreSQL converter";
homepage = https://github.com/openstreetmap/osm2pgsql;
2019-07-11 11:06:01 +00:00
license = licenses.gpl2;
platforms = platforms.linux;
2017-04-17 20:19:41 +00:00
};
}