diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-12-06 19:57:55 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-08 13:48:30 +0000 |
commit | bf3aadfdd39aa197e18bade671fab6726349ffa4 (patch) | |
tree | 698567af766ed441d757b57a7b21e68d4a342a2b /nixpkgs/pkgs/applications/gis/grass/default.nix | |
parent | f4afc5a01d9539ce09e47494e679c51f80723d07 (diff) | |
parent | 99665eb45f58d959d2cb9e49ddb960c79d596f33 (diff) | |
download | nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.gz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.bz2 nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.lz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.xz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.zst nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.zip |
Merge commit '99665eb45f58d959d2cb9e49ddb960c79d596f33'
Diffstat (limited to 'nixpkgs/pkgs/applications/gis/grass/default.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/gis/grass/default.nix | 46 |
1 files changed, 10 insertions, 36 deletions
diff --git a/nixpkgs/pkgs/applications/gis/grass/default.nix b/nixpkgs/pkgs/applications/gis/grass/default.nix index 36664a2d49cd..8ec293e489a7 100644 --- a/nixpkgs/pkgs/applications/gis/grass/default.nix +++ b/nixpkgs/pkgs/applications/gis/grass/default.nix @@ -1,25 +1,25 @@ { lib, stdenv, fetchFromGitHub, flex, bison, pkg-config, zlib, libtiff, libpng, fftw -, cairo, readline, ffmpeg, makeWrapper, wxGTK30, wxmac, netcdf, blas +, cairo, readline, ffmpeg, makeWrapper, wxGTK31, wxmac, netcdf, blas , proj, gdal, geos, sqlite, postgresql, libmysqlclient, python3Packages, libLAS, proj-datumgrid , zstd, pdal, wrapGAppsHook }: stdenv.mkDerivation rec { pname = "grass"; - version = "7.8.6"; + version = "8.2.0"; src = with lib; fetchFromGitHub { owner = "OSGeo"; repo = "grass"; rev = version; - sha256 = "sha256-zvZqFWuxNyA+hu+NMiRbQVdzzrQPsZrdGdfVB17+SbM="; + sha256 = "sha256-VK9FCqIwHGmeJe5lk12lpAGcsC1aPRBiI+XjACXjDd4="; }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite readline ffmpeg makeWrapper netcdf geos postgresql libmysqlclient blas libLAS proj-datumgrid zstd wrapGAppsHook ] - ++ lib.optionals stdenv.isLinux [ cairo pdal wxGTK30 ] + ++ lib.optionals stdenv.isLinux [ cairo pdal wxGTK31 ] ++ lib.optional stdenv.isDarwin wxmac ++ (with python3Packages; [ python python-dateutil numpy ] ++ lib.optional stdenv.isDarwin wxPython_4_0 @@ -68,41 +68,15 @@ stdenv.mkDerivation rec { /* Ensures that the python script run at build time are actually executable; * otherwise, patchShebangs ignores them. */ postConfigure = '' - chmod +x scripts/d.out.file/d.out.file.py \ - scripts/d.to.rast/d.to.rast.py \ - scripts/d.what.rast/d.what.rast.py \ - scripts/d.what.vect/d.what.vect.py \ - scripts/g.extension/g.extension.py \ - scripts/g.extension.all/g.extension.all.py \ - scripts/r.drain/r.drain.py \ - scripts/r.pack/r.pack.py \ - scripts/r.import/r.import.py \ - scripts/r.tileset/r.tileset.py \ - scripts/r.unpack/r.unpack.py \ - scripts/v.clip/v.clip.py \ - scripts/v.rast.stats/v.rast.stats.py \ - scripts/v.to.lines/v.to.lines.py \ - scripts/v.what.strds/v.what.strds.py \ - scripts/v.unpack/v.unpack.py \ - scripts/wxpyimgview/*.py \ - gui/wxpython/animation/g.gui.animation.py \ - gui/wxpython/datacatalog/g.gui.datacatalog.py \ - gui/wxpython/rlisetup/g.gui.rlisetup.py \ - gui/wxpython/vdigit/g.gui.vdigit.py \ - temporal/t.rast.accumulate/t.rast.accumulate.py \ - temporal/t.rast.accdetect/t.rast.accdetect.py \ - temporal/t.rast.algebra/t.rast.algebra.py \ - temporal/t.rast3d.algebra/t.rast3d.algebra.py \ - temporal/t.vect.algebra/t.vect.algebra.py \ - temporal/t.downgrade/t.downgrade.py \ - temporal/t.select/t.select.py - for d in gui lib scripts temporal tools; do - patchShebangs $d + for f in $(find . -name '*.py'); do + chmod +x $f done + + patchShebangs */ ''; postInstall = '' - wrapProgram $out/bin/grass78 \ + wrapProgram $out/bin/grass \ --set PYTHONPATH $PYTHONPATH \ --set GRASS_PYTHON ${python3Packages.python.interpreter} \ --suffix LD_LIBRARY_PATH ':' '${gdal}/lib' @@ -117,6 +91,6 @@ stdenv.mkDerivation rec { description = "GIS software suite used for geospatial data management and analysis, image processing, graphics and maps production, spatial modeling, and visualization"; license = lib.licenses.gpl2Plus; platforms = lib.platforms.all; - maintainers = with lib.maintainers; [mpickering]; + maintainers = with lib.maintainers; [ mpickering willcohen ]; }; } |