Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
103 lines
1.8 KiB
Nix
103 lines
1.8 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
# native
|
|
cmake,
|
|
desktopToDarwinBundle,
|
|
dos2unix,
|
|
pkg-config,
|
|
wrapGAppsHook3,
|
|
# not native
|
|
gdal,
|
|
wxGTK32,
|
|
proj,
|
|
libsForQt5,
|
|
curl,
|
|
libiodbc,
|
|
xz,
|
|
libharu,
|
|
opencv,
|
|
vigra,
|
|
pdal,
|
|
libpq,
|
|
unixODBC,
|
|
poppler,
|
|
hdf5,
|
|
netcdf,
|
|
sqlite,
|
|
qhull,
|
|
giflib,
|
|
libsvm,
|
|
fftw,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "saga";
|
|
version = "9.9.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/saga-gis/saga-${version}.tar.gz";
|
|
hash = "sha256-6wyAUf4Dy41OEHqlY1T8wh/RCmPeCboDccX7ieqXPdo=";
|
|
};
|
|
|
|
sourceRoot = "saga-${version}/saga-gis";
|
|
|
|
postPatch = ''
|
|
dos2unix src/saga_core/saga_gui/res/org.saga_gis.saga_gui.desktop
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
dos2unix
|
|
wrapGAppsHook3
|
|
pkg-config
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
|
|
|
|
buildInputs = [
|
|
curl
|
|
libsForQt5.dxflib
|
|
fftw
|
|
libsvm
|
|
hdf5
|
|
gdal
|
|
wxGTK32
|
|
pdal
|
|
proj
|
|
libharu
|
|
opencv
|
|
vigra
|
|
libpq
|
|
libiodbc
|
|
xz
|
|
qhull
|
|
giflib
|
|
]
|
|
# See https://groups.google.com/forum/#!topic/nix-devel/h_vSzEJAPXs
|
|
# for why the have additional buildInputs on darwin
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
unixODBC
|
|
poppler
|
|
netcdf
|
|
sqlite
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "OpenMP_SUPPORT" (!stdenv.hostPlatform.isDarwin))
|
|
];
|
|
|
|
meta = {
|
|
description = "System for Automated Geoscientific Analyses";
|
|
homepage = "https://saga-gis.sourceforge.io";
|
|
changelog = "https://sourceforge.net/p/saga-gis/wiki/Changelog%20${version}/";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [
|
|
michelk
|
|
mpickering
|
|
];
|
|
teams = [ lib.teams.geospatial ];
|
|
platforms = with lib.platforms; unix;
|
|
};
|
|
}
|