2022-09-19 16:51:34 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, desktopToDarwinBundle
|
|
|
|
, curl
|
|
|
|
, freexl
|
|
|
|
, geos
|
|
|
|
, librasterlite2
|
|
|
|
, librttopo
|
|
|
|
, libspatialite
|
|
|
|
, libwebp
|
|
|
|
, libxlsxwriter
|
|
|
|
, libxml2
|
|
|
|
, lz4
|
|
|
|
, minizip
|
|
|
|
, openjpeg
|
|
|
|
, postgresql
|
|
|
|
, proj
|
|
|
|
, sqlite
|
|
|
|
, virtualpg
|
|
|
|
, wxGTK
|
2022-10-10 20:01:32 +00:00
|
|
|
, xz
|
2022-09-19 16:51:34 +00:00
|
|
|
, zstd
|
|
|
|
, Carbon
|
|
|
|
, Cocoa
|
|
|
|
, IOKit
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spatialite-gui";
|
|
|
|
version = "2.1.0-beta1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.gaia-gis.it/gaia-sins/spatialite-gui-sources/spatialite_gui-${version}.tar.gz";
|
|
|
|
hash = "sha256-ukjZbfGM68P/I/aXlyB64VgszmL0WWtpuuMAyjwj2zM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ]
|
|
|
|
++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
freexl
|
|
|
|
geos
|
|
|
|
librasterlite2
|
|
|
|
librttopo
|
|
|
|
libspatialite
|
|
|
|
libwebp
|
|
|
|
libxlsxwriter
|
|
|
|
libxml2
|
|
|
|
lz4
|
|
|
|
minizip
|
|
|
|
openjpeg
|
|
|
|
postgresql
|
|
|
|
proj
|
|
|
|
sqlite
|
|
|
|
virtualpg
|
2022-10-11 12:28:20 +00:00
|
|
|
wxGTK
|
2022-10-10 20:01:32 +00:00
|
|
|
xz
|
2022-09-19 16:51:34 +00:00
|
|
|
zstd
|
2022-10-11 12:28:20 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Carbon Cocoa IOKit ];
|
2022-09-19 16:51:34 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postFixup = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
|
|
|
rm -fr $out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Graphical user interface for SpatiaLite";
|
|
|
|
homepage = "https://www.gaia-gis.it/fossil/spatialite_gui";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2023-11-28 11:04:36 +00:00
|
|
|
maintainers = teams.geospatial.members;
|
2022-09-19 16:51:34 +00:00
|
|
|
mainProgram = "spatialite_gui";
|
|
|
|
};
|
|
|
|
}
|