2021-05-24 22:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
2022-09-17 20:47:43 +00:00
|
|
|
, freexl
|
2021-05-24 22:41:00 +00:00
|
|
|
, geos
|
|
|
|
, expat
|
|
|
|
, librttopo
|
|
|
|
, libspatialite
|
|
|
|
, libxml2
|
|
|
|
, minizip
|
|
|
|
, proj
|
|
|
|
, readosm
|
|
|
|
, sqlite
|
2022-09-17 20:47:43 +00:00
|
|
|
, testers
|
|
|
|
, spatialite_tools
|
2021-05-24 22:41:00 +00:00
|
|
|
}:
|
2014-10-18 19:09:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-24 22:41:00 +00:00
|
|
|
pname = "spatialite-tools";
|
2023-08-14 21:03:59 +00:00
|
|
|
version = "5.1.0a";
|
2014-10-18 19:09:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-08-06 18:53:29 +00:00
|
|
|
url = "https://www.gaia-gis.it/gaia-sins/spatialite-tools-sources/spatialite-tools-${version}.tar.gz";
|
2023-08-14 21:03:59 +00:00
|
|
|
hash = "sha256-EZ40dY6AiM27Q+2BtKbq6ojHZLC32hkAGlUUslRVAc4=";
|
2014-10-18 19:09:42 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-05-24 22:41:00 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
expat
|
2022-09-17 20:47:43 +00:00
|
|
|
freexl
|
2021-05-24 22:41:00 +00:00
|
|
|
geos
|
|
|
|
librttopo
|
|
|
|
libspatialite
|
|
|
|
libxml2
|
|
|
|
minizip
|
|
|
|
proj
|
|
|
|
readosm
|
|
|
|
sqlite
|
|
|
|
];
|
2014-10-18 19:09:42 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-09-17 20:47:43 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = spatialite_tools;
|
|
|
|
command = "! spatialite_tool --version";
|
|
|
|
version = "${libspatialite.version}";
|
|
|
|
};
|
2019-02-10 13:14:33 +00:00
|
|
|
|
2021-05-24 22:41:00 +00:00
|
|
|
meta = with lib; {
|
2014-10-18 19:09:42 +00:00
|
|
|
description = "A complete sqlite3-compatible CLI front-end for libspatialite";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gaia-gis.it/fossil/spatialite-tools";
|
2021-05-24 22:41:00 +00:00
|
|
|
license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ];
|
2022-09-17 20:47:43 +00:00
|
|
|
platforms = platforms.unix;
|
2021-05-24 22:41:00 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2022-09-17 20:47:43 +00:00
|
|
|
mainProgram = "spatialite_tool";
|
2014-10-18 19:09:42 +00:00
|
|
|
};
|
|
|
|
}
|