1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/osm2pgsql/default.nix

28 lines
765 B
Nix
Raw Normal View History

2019-07-11 12:06:01 +01:00
{ stdenv, fetchFromGitHub, cmake, expat, proj, bzip2, zlib, boost, postgresql, lua}:
2017-04-17 21:19:41 +01:00
stdenv.mkDerivation rec {
pname = "osm2pgsql";
2019-11-02 15:12:46 +00:00
version = "1.2.0";
2017-04-17 21:19:41 +01:00
2019-07-11 12:06:01 +01:00
src = fetchFromGitHub {
owner = "openstreetmap";
repo = pname;
2019-07-11 12:06:01 +01:00
rev = version;
2019-11-02 15:12:46 +00:00
sha256 = "1xbzkrjv5d34dahgp9xxhasr8xzygpjbsr675rq59xzy9v7nvs9b";
2017-04-17 21:19:41 +01:00
};
2019-07-11 12:06:01 +01: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 21:19:41 +01:00
description = "OpenStreetMap data to PostgreSQL converter";
homepage = "https://github.com/openstreetmap/osm2pgsql";
2019-07-11 12:06:01 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ jglukasik ];
2017-04-17 21:19:41 +01:00
};
}