nixpkgs/pkgs/applications/gis/saga/default.nix

33 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, gdal, wxGTK30, proj, libiodbc, lzma,
libharu, opencv, vigra, postgresql, Cocoa,
2018-08-15 10:10:28 +02:00
unixODBC , poppler, hdf4, hdf5, netcdf, sqlite, qhull, giflib }:
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
2019-07-13 14:01:57 +02:00
pname = "saga";
2020-04-07 19:00:20 +02:00
version = "7.6.2";
# See https://groups.google.com/forum/#!topic/nix-devel/h_vSzEJAPXs
# for why the have additional buildInputs on darwin
2018-08-15 10:10:28 +02:00
buildInputs = [ gdal wxGTK30 proj libharu opencv vigra postgresql libiodbc lzma
qhull giflib ]
++ stdenv.lib.optionals stdenv.isDarwin
[ Cocoa unixODBC poppler hdf4.out hdf5 netcdf sqlite ];
enableParallelBuilding = true;
2018-08-15 10:10:28 +02:00
CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isClang "-std=c++11 -Wno-narrowing";
src = fetchurl {
2020-04-07 19:00:20 +02:00
url = "https://sourceforge.net/projects/saga-gis/files/SAGA%20-%207/SAGA%20-%207.6.2/saga-7.6.2.tar.gz";
sha256 = "09j5magmayq2y620kqa490mfd1kpdp3lng2ifcgbrmssc079ybm0";
};
meta = with stdenv.lib; {
description = "System for Automated Geoscientific Analyses";
2020-03-16 10:54:28 +01:00
homepage = "http://www.saga-gis.org";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ michelk mpickering ];
platforms = with platforms; unix;
};
}