2016-10-25 15:25:56 +02:00
|
|
|
{ stdenv, lib, fetchurl, pkgconfig, libxml2, sqlite, zlib, proj, geos, libiconv }:
|
|
|
|
|
|
|
|
with lib;
|
2013-07-18 11:40:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-08 21:17:12 +01:00
|
|
|
name = "libspatialite-4.2.0";
|
2013-07-18 11:40:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-13 10:50:39 +02:00
|
|
|
url = "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/${name}.tar.gz";
|
2014-11-08 21:17:12 +01:00
|
|
|
sha256 = "0b9ipmp09y2ij7yajyjsh0zcwps8n5g88lzfzlkph33lail8l4wz";
|
2013-07-18 11:40:23 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libxml2 sqlite zlib proj geos libiconv ];
|
2013-07-18 11:40:23 +02:00
|
|
|
|
|
|
|
configureFlags = "--disable-freexl";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-10-25 15:25:56 +02:00
|
|
|
postInstall = "" + optionalString stdenv.isDarwin ''
|
|
|
|
ln -s $out/lib/mod_spatialite.{so,dylib}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2013-07-18 11:40:23 +02:00
|
|
|
description = "Extensible spatial index library in C++";
|
|
|
|
homepage = https://www.gaia-gis.it/fossil/libspatialite;
|
|
|
|
# They allow any of these
|
2014-11-08 21:17:12 +01:00
|
|
|
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
|
2016-09-13 09:10:35 +02:00
|
|
|
platforms = platforms.unix;
|
2013-07-18 11:40:23 +02:00
|
|
|
};
|
|
|
|
}
|