python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / sa / saga / package.nix
blobe7642e0425157da4fe1d123f4d88136c34b64391
2   stdenv,
3   lib,
4   fetchurl,
5   # native
6   cmake,
7   desktopToDarwinBundle,
8   pkg-config,
9   wrapGAppsHook3,
10   # not native
11   gdal,
12   wxGTK32,
13   proj,
14   libsForQt5,
15   curl,
16   libiodbc,
17   xz,
18   libharu,
19   opencv,
20   vigra,
21   pdal,
22   postgresql,
23   darwin,
24   unixODBC,
25   poppler,
26   hdf5,
27   netcdf,
28   sqlite,
29   qhull,
30   giflib,
31   libsvm,
32   fftw,
35 stdenv.mkDerivation rec {
36   pname = "saga";
37   version = "9.6.0";
39   src = fetchurl {
40     url = "mirror://sourceforge/saga-gis/saga-${version}.tar.gz";
41     hash = "sha256-M4228GDo9jIVJMfl61n7cgTAmBYZrmHdXb+mD40vWqY";
42   };
44   sourceRoot = "saga-${version}/saga-gis";
46   nativeBuildInputs = [
47     cmake
48     wrapGAppsHook3
49     pkg-config
50   ] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
52   buildInputs =
53     [
54       curl
55       libsForQt5.dxflib
56       fftw
57       libsvm
58       hdf5
59       gdal
60       wxGTK32
61       pdal
62       proj
63       libharu
64       opencv
65       vigra
66       postgresql
67       libiodbc
68       xz
69       qhull
70       giflib
71     ]
72     # See https://groups.google.com/forum/#!topic/nix-devel/h_vSzEJAPXs
73     # for why the have additional buildInputs on darwin
74     ++ lib.optionals stdenv.hostPlatform.isDarwin [
75       darwin.apple_sdk.frameworks.Cocoa
76       unixODBC
77       poppler
78       netcdf
79       sqlite
80     ];
82   cmakeFlags = [
83     (lib.cmakeBool "OpenMP_SUPPORT" (!stdenv.hostPlatform.isDarwin))
84   ];
86   meta = with lib; {
87     description = "System for Automated Geoscientific Analyses";
88     homepage = "https://saga-gis.sourceforge.io";
89     changelog = "https://sourceforge.net/p/saga-gis/wiki/Changelog ${version}/";
90     license = licenses.gpl2Plus;
91     maintainers =
92       with maintainers;
93       teams.geospatial.members
94       ++ [
95         michelk
96         mpickering
97       ];
98     platforms = with platforms; unix;
99   };