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 {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "osm2pgsql";
|
2019-12-24 04:02:01 +00:00
|
|
|
version = "1.2.1";
|
2017-04-17 21:19:41 +01:00
|
|
|
|
2019-07-11 12:06:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstreetmap";
|
2019-10-13 10:37:39 +01:00
|
|
|
repo = pname;
|
2019-07-11 12:06:01 +01:00
|
|
|
rev = version;
|
2019-12-24 04:02:01 +00:00
|
|
|
sha256 = "1ysan01lpqzjxlq3y2kdminfjs5d9zksicpf9vvzpdk3fzq51fc9";
|
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 ];
|
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H";
|
2019-07-11 12:06:01 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-04-17 21:19:41 +01:00
|
|
|
description = "OpenStreetMap data to PostgreSQL converter";
|
2019-10-13 10:37:39 +01:00
|
|
|
homepage = "https://github.com/openstreetmap/osm2pgsql";
|
2019-07-11 12:06:01 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2019-10-13 10:37:39 +01:00
|
|
|
maintainers = with maintainers; [ jglukasik ];
|
2017-04-17 21:19:41 +01:00
|
|
|
};
|
|
|
|
}
|