2014-11-08 20:17:12 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, sqlite, zlib, proj, geos }:
|
2013-07-18 10:40:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-08 20:17:12 +00:00
|
|
|
name = "libspatialite-4.2.0";
|
2013-07-18 10:40:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-13 09:50:39 +01:00
|
|
|
url = "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/${name}.tar.gz";
|
2014-11-08 20:17:12 +00:00
|
|
|
sha256 = "0b9ipmp09y2ij7yajyjsh0zcwps8n5g88lzfzlkph33lail8l4wz";
|
2013-07-18 10:40:23 +01:00
|
|
|
};
|
|
|
|
|
2014-11-08 20:17:12 +00:00
|
|
|
buildInputs = [ pkgconfig libxml2 sqlite zlib proj geos ];
|
2013-07-18 10:40:23 +01:00
|
|
|
|
|
|
|
configureFlags = "--disable-freexl";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-11-08 20:17:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-07-18 10:40:23 +01:00
|
|
|
description = "Extensible spatial index library in C++";
|
|
|
|
homepage = https://www.gaia-gis.it/fossil/libspatialite;
|
|
|
|
# They allow any of these
|
2014-11-08 20:17:12 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
|
|
|
|
platforms = platforms.linux;
|
2013-07-18 10:40:23 +01:00
|
|
|
};
|
|
|
|
}
|