libspatialite: fix build

This commit is contained in:
Jonathan Ringer 2019-07-11 03:05:42 -07:00
parent 06960ac6a7
commit 19ebc0bd45

View File

@ -11,12 +11,15 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 sqlite zlib proj geos libiconv ];
configureFlags = [ "--disable-freexl" ];
enableParallelBuilding = true;
CFLAGS = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1";
postInstall = "" + optionalString stdenv.isDarwin ''
ln -s $out/lib/mod_spatialite.{so,dylib}
'';