diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-09-19 10:45:09 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-09-19 10:45:09 +0300 |
commit | 5fbc12bd70147aae7f925895a4e2beb6bae2f885 (patch) | |
tree | 15c99cdb2c56e46a4ca4c93cfac8edf7b1f2be39 /pkgs/applications/gis/spatialite-tools/default.nix | |
parent | 0b8725c7285346ad2b1cc967c1d4f0547e8e908b (diff) |
spatialite_tools: move to applications/gis
Diffstat (limited to 'pkgs/applications/gis/spatialite-tools/default.nix')
-rw-r--r-- | pkgs/applications/gis/spatialite-tools/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/gis/spatialite-tools/default.nix b/pkgs/applications/gis/spatialite-tools/default.nix new file mode 100644 index 0000000000000..875c33e60f3c5 --- /dev/null +++ b/pkgs/applications/gis/spatialite-tools/default.nix @@ -0,0 +1,59 @@ +{ lib +, stdenv +, fetchurl +, pkg-config +, freexl +, geos +, expat +, librttopo +, libspatialite +, libxml2 +, minizip +, proj +, readosm +, sqlite +, testers +, spatialite_tools +}: + +stdenv.mkDerivation rec { + pname = "spatialite-tools"; + version = "5.0.1"; + + src = fetchurl { + url = "https://www.gaia-gis.it/gaia-sins/spatialite-tools-${version}.tar.gz"; + hash = "sha256-lgTCBeh/A3eJvFIwLGbM0TccPpjHTo7E4psHUt41Fxw="; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + expat + freexl + geos + librttopo + libspatialite + libxml2 + minizip + proj + readosm + sqlite + ]; + + enableParallelBuilding = true; + + passthru.tests.version = testers.testVersion { + package = spatialite_tools; + command = "! spatialite_tool --version"; + version = "${libspatialite.version}"; + }; + + meta = with lib; { + description = "A complete sqlite3-compatible CLI front-end for libspatialite"; + homepage = "https://www.gaia-gis.it/fossil/spatialite-tools"; + license = with licenses; [ mpl11 gpl2Plus lgpl21Plus ]; + platforms = platforms.unix; + maintainers = with maintainers; [ dotlambda ]; + mainProgram = "spatialite_tool"; + }; +} |