nixpkgs/pkgs/development/libraries/spatialite-tools/default.nix

53 lines
1001 B
Nix
Raw Normal View History

2021-05-24 22:41:00 +00:00
{ lib
, stdenv
, fetchurl
, pkg-config
, geos
, expat
, librttopo
, libspatialite
, libxml2
, minizip
, proj
, readosm
, sqlite
}:
stdenv.mkDerivation rec {
2021-05-24 22:41:00 +00:00
pname = "spatialite-tools";
2021-05-30 23:00:54 +00:00
version = "5.0.1";
src = fetchurl {
2021-05-24 22:41:00 +00:00
url = "https://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/${pname}-${version}.tar.gz";
2021-05-30 23:00:54 +00:00
sha256 = "sha256-lgTCBeh/A3eJvFIwLGbM0TccPpjHTo7E4psHUt41Fxw=";
};
nativeBuildInputs = [ pkg-config ];
2021-05-24 22:41:00 +00:00
buildInputs = [
expat
geos
librttopo
libspatialite
libxml2
minizip
proj
readosm
sqlite
];
2018-07-25 21:44:21 +00:00
configureFlags = [ "--disable-freexl" ];
enableParallelBuilding = true;
2019-10-30 11:34:47 +00:00
NIX_LDFLAGS = "-lsqlite3";
2021-05-24 22:41:00 +00:00
meta = with lib; {
description = "A complete sqlite3-compatible CLI front-end for libspatialite";
homepage = "https://www.gaia-gis.it/fossil/spatialite-tools";
2021-05-24 22:41:00 +00:00
license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ];
platforms = platforms.linux;
maintainers = with maintainers; [ dotlambda ];
};
}