nixpkgs-suyu/pkgs/development/libraries/libspatialite/default.nix

35 lines
934 B
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, pkgconfig, libxml2, sqlite, zlib, proj, geos, libiconv }:
with lib;
stdenv.mkDerivation rec {
name = "libspatialite-4.3.0a";
src = fetchurl {
url = "https://www.gaia-gis.it/gaia-sins/libspatialite-sources/${name}.tar.gz";
sha256 = "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448";
};
nativeBuildInputs = [ pkgconfig ];
2019-07-11 12:05:42 +02:00
buildInputs = [ libxml2 sqlite zlib proj geos libiconv ];
2018-07-25 23:44:21 +02:00
configureFlags = [ "--disable-freexl" ];
enableParallelBuilding = true;
2019-07-11 12:05:42 +02:00
CFLAGS = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1";
postInstall = "" + optionalString stdenv.isDarwin ''
ln -s $out/lib/mod_spatialite.{so,dylib}
'';
meta = {
description = "Extensible spatial index library in C++";
homepage = https://www.gaia-gis.it/fossil/libspatialite;
# They allow any of these
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
platforms = platforms.unix;
};
}