nixpkgs/pkgs/applications/gis/spatialite-tools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.2 KiB
Nix
Raw Normal View History

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
}:
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";
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=";
};
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
];
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}";
};
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 ];
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";
};
}