16 stdenv.mkDerivation rec {
17 pname = "libspatialite";
20 outputs = [ "out" "dev" ];
23 url = "https://www.gaia-gis.it/gaia-sins/libspatialite-${version}.tar.gz";
24 hash = "sha256-7svJQxHHgBLQWevA+uhupe9u7LEzA+boKzdTwbNAnpg=";
30 geos # for geos-config
41 ] ++ lib.optionals stdenv.isDarwin [
45 enableParallelBuilding = true;
47 postInstall = lib.optionalString stdenv.isDarwin ''
48 ln -s $out/lib/mod_spatialite.{so,dylib}
51 # Failed tests (linux & darwin):
52 # - check_virtualtable6
57 export LD_LIBRARY_PATH=$(pwd)/src/.libs
58 export DYLD_LIBRARY_PATH=$(pwd)/src/.libs
62 description = "Extensible spatial index library in C++";
63 homepage = "https://www.gaia-gis.it/fossil/libspatialite";
64 # They allow any of these
65 license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
66 platforms = platforms.unix;
67 maintainers = with maintainers; [ dotlambda ];