nixpkgs/pkgs/tools/misc/osm2pgsql/default.nix
2019-12-31 00:16:46 +01:00

28 lines
761 B
Nix

{ stdenv, fetchFromGitHub, cmake, expat, proj, bzip2, zlib, boost, postgresql, lua}:
stdenv.mkDerivation rec {
pname = "osm2pgsql";
version = "1.2.0";
src = fetchFromGitHub {
owner = "openstreetmap";
repo = pname;
rev = version;
sha256 = "1xbzkrjv5d34dahgp9xxhasr8xzygpjbsr675rq59xzy9v7nvs9b";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ expat proj bzip2 zlib boost postgresql lua ];
NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H";
meta = with stdenv.lib; {
description = "OpenStreetMap data to PostgreSQL converter";
homepage = "https://github.com/openstreetmap/osm2pgsql";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ jglukasik ];
};
}