3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libspatialite/default.nix
Ryan Mulligan d6ab8a666d libspatialite: 4.2.0 -> 4.3.0a
Semi-automatic update. These checks were performed:

- built on NixOS
- found 4.3.0a with grep in /nix/store/m0xjxq9ca1fwhwzl6klfaz4kj7v21cnr-libspatialite-4.3.0a
- found 4.3.0a in filename of file in /nix/store/m0xjxq9ca1fwhwzl6klfaz4kj7v21cnr-libspatialite-4.3.0a
2018-03-04 17:56:24 +00:00

32 lines
873 B
Nix

{ stdenv, lib, fetchurl, pkgconfig, libxml2, sqlite, zlib, proj, geos, libiconv }:
with lib;
stdenv.mkDerivation rec {
name = "libspatialite-4.3.0a";
src = fetchurl {
url = "http://www.gaia-gis.it/gaia-sins/libspatialite-sources/${name}.tar.gz";
sha256 = "16d4lpl7xrm9zy4gphy6nwanpjp8wn9g4wq2i2kh8abnlhq01448";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 sqlite zlib proj geos libiconv ];
configureFlags = "--disable-freexl";
enableParallelBuilding = true;
postInstall = "" + optionalString stdenv.isDarwin ''
ln -s $out/lib/mod_spatialite.{so,dylib}
'';
meta = {
description = "Extensible spatial index library in C++";
homepage = https://www.gaia-gis.it/fossil/libspatialite;
# They allow any of these
license = with licenses; [ gpl2Plus lgpl21Plus mpl11 ];
platforms = platforms.unix;
};
}