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