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