diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-09-19 19:51:34 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@disroot.org> | 2022-09-19 21:18:20 +0300 |
commit | 57ec8cf4b38bc5b4726d5c75c14b3b8bfd3bb20f (patch) | |
tree | d61e886db68770687c9307bbd0cb728027e4cd4b /pkgs/applications/gis | |
parent | 08eb1cf02c2d6a325936de1fcb7cbd708c38f162 (diff) |
spatialite_gui: init at 2.1.0-beta1
Diffstat (limited to 'pkgs/applications/gis')
-rw-r--r-- | pkgs/applications/gis/spatialite-gui/default.nix | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/pkgs/applications/gis/spatialite-gui/default.nix b/pkgs/applications/gis/spatialite-gui/default.nix new file mode 100644 index 0000000000000..541d0da8d734e --- /dev/null +++ b/pkgs/applications/gis/spatialite-gui/default.nix @@ -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"; + }; +} |