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