1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00
nixpkgs/pkgs/tools/misc/osm2pgsql/default.nix
Raphael Borun Das Gupta 8a3419d702 osm2pgsql: 1.2.1 -> 1.2.2
2020-06-28 23:06:36 +02:00

33 lines
965 B
Nix

{ stdenv, fetchFromGitHub, cmake, expat, proj, bzip2, zlib, boost, postgresql
, withLuaJIT ? false, lua, luajit }:
stdenv.mkDerivation rec {
pname = "osm2pgsql";
version = "1.2.2";
src = fetchFromGitHub {
owner = "openstreetmap";
repo = pname;
rev = version;
sha256 = "1j35aa8qinhavliqi5pdm0viyi7lm5xyk402rliaxxs1r2hbsafn";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ expat proj bzip2 zlib boost postgresql ]
++ stdenv.lib.optional withLuaJIT luajit
++ stdenv.lib.optional (!withLuaJIT) lua;
cmakeFlags = stdenv.lib.optional withLuaJIT "-DWITH_LUAJIT:BOOL=ON";
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 = with platforms; linux ++ darwin;
maintainers = with maintainers; [ jglukasik ];
};
}