1{ stdenv, fetchurl, pkgconfig, libxml2, sqlite, zlib, proj, geos }:
2
3stdenv.mkDerivation rec {
4 name = "libspatialite-4.2.0";
5
6 src = fetchurl {
7 url = "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/${name}.tar.gz";
8 sha256 = "0b9ipmp09y2ij7yajyjsh0zcwps8n5g88lzfzlkph33lail8l4wz";
9 };
10
11 buildInputs = [ pkgconfig libxml2 sqlite zlib proj geos ];
12
13 configureFlags = "--disable-freexl";
14
15 enableParallelBuilding = true;
16
17 meta = with stdenv.lib; {
18 description = "Extensible spatial index library in C++";
19 homepage = https://www.gaia-gis.it/fossil/libspatialite;
20 # They allow any of these
21 license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
22 platforms = platforms.linux;
23 };
24}