mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, desktopToDarwinBundle
|
|
, curl
|
|
, freexl
|
|
, geos
|
|
, librasterlite2
|
|
, librttopo
|
|
, libspatialite
|
|
, libwebp
|
|
, libxlsxwriter
|
|
, libxml2
|
|
, lz4
|
|
, minizip
|
|
, openjpeg
|
|
, postgresql
|
|
, proj
|
|
, sqlite
|
|
, virtualpg
|
|
, wxGTK
|
|
, xz
|
|
, 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
|
|
wxGTK
|
|
xz
|
|
zstd
|
|
] ++ lib.optionals stdenv.isDarwin [ Carbon Cocoa IOKit ];
|
|
|
|
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";
|
|
};
|
|
}
|