Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 96 lines 1.7 kB view raw
1{ 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 libpq, 23 unixODBC, 24 poppler, 25 hdf5, 26 netcdf, 27 sqlite, 28 qhull, 29 giflib, 30 libsvm, 31 fftw, 32}: 33 34stdenv.mkDerivation rec { 35 pname = "saga"; 36 version = "9.9.1"; 37 38 src = fetchurl { 39 url = "mirror://sourceforge/saga-gis/saga-${version}.tar.gz"; 40 hash = "sha256-InypyVCk08tsByKaIBRFWldwRz1AkNCgFD3DL4OG84w="; 41 }; 42 43 sourceRoot = "saga-${version}/saga-gis"; 44 45 nativeBuildInputs = [ 46 cmake 47 wrapGAppsHook3 48 pkg-config 49 ] 50 ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle; 51 52 buildInputs = [ 53 curl 54 libsForQt5.dxflib 55 fftw 56 libsvm 57 hdf5 58 gdal 59 wxGTK32 60 pdal 61 proj 62 libharu 63 opencv 64 vigra 65 libpq 66 libiodbc 67 xz 68 qhull 69 giflib 70 ] 71 # See https://groups.google.com/forum/#!topic/nix-devel/h_vSzEJAPXs 72 # for why the have additional buildInputs on darwin 73 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 74 unixODBC 75 poppler 76 netcdf 77 sqlite 78 ]; 79 80 cmakeFlags = [ 81 (lib.cmakeBool "OpenMP_SUPPORT" (!stdenv.hostPlatform.isDarwin)) 82 ]; 83 84 meta = { 85 description = "System for Automated Geoscientific Analyses"; 86 homepage = "https://saga-gis.sourceforge.io"; 87 changelog = "https://sourceforge.net/p/saga-gis/wiki/Changelog ${version}/"; 88 license = lib.licenses.gpl2Plus; 89 maintainers = with lib.maintainers; [ 90 michelk 91 mpickering 92 ]; 93 teams = [ lib.teams.geospatial ]; 94 platforms = with lib.platforms; unix; 95 }; 96}