spatialite_gui: init at 2.1.0-beta1

This commit is contained in:
Nikolay Korotkiy 2022-09-19 19:51:34 +03:00
parent 08eb1cf02c
commit 57ec8cf4b3
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5
2 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,77 @@
{ lib
, stdenv
, fetchurl
, pkg-config
, desktopToDarwinBundle
, curl
, freexl
, geos
, librasterlite2
, librttopo
, libspatialite
, libwebp
, libxlsxwriter
, libxml2
, lz4
, minizip
, openjpeg
, postgresql
, proj
, sqlite
, virtualpg
, wxGTK
, wxmac
, 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.isDarwin desktopToDarwinBundle;
buildInputs = [
curl
freexl
geos
librasterlite2
librttopo
libspatialite
libwebp
libxlsxwriter
libxml2
lz4
minizip
openjpeg
postgresql
proj
sqlite
virtualpg
zstd
] ++ lib.optional stdenv.isLinux wxGTK
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa IOKit wxmac ];
enableParallelBuilding = true;
postFixup = lib.optionalString stdenv.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;
maintainers = with maintainers; [ sikmir ];
mainProgram = "spatialite_gui";
};
}

View file

@ -26478,6 +26478,11 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Cocoa;
};
spatialite_gui = callPackage ../applications/gis/spatialite-gui {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa IOKit;
wxGTK = wxGTK30-gtk3;
};
spatialite_tools = callPackage ../applications/gis/spatialite-tools { };
udig = callPackage ../applications/gis/udig { };