3
0
Fork 0
forked from mirrors/nixpkgs

osm2pgsql: use protozero from nixpkgs

This commit is contained in:
Raphael Borun Das Gupta 2020-06-29 00:23:21 +02:00 committed by Daniël de Kok
parent 03f13ede61
commit f3ee53c715

View file

@ -11,6 +11,7 @@
, lua
, luajit
, libosmium
, protozero
}:
stdenv.mkDerivation rec {
@ -26,11 +27,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
buildInputs = [ expat proj bzip2 zlib boost postgresql libosmium ]
buildInputs = [ expat proj bzip2 zlib boost postgresql libosmium protozero ]
++ stdenv.lib.optional withLuaJIT luajit
++ stdenv.lib.optional (!withLuaJIT) lua;
cmakeFlags = [ "-DEXTERNAL_LIBOSMIUM=ON" ]
cmakeFlags = [ "-DEXTERNAL_LIBOSMIUM=ON" "-DEXTERNAL_PROTOZERO=ON" ]
++ stdenv.lib.optional withLuaJIT "-DWITH_LUAJIT:BOOL=ON";
NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H";