diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-10-15 20:36:51 +0200 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2022-10-15 20:36:51 +0200 |
commit | 6f46852c6f40b30d41ffa5f81b73221cc842f49e (patch) | |
tree | 7e2927e43868a1d42caa9f5cb235872614d5b3c7 /pkgs/applications/gis | |
parent | b286501a5eadad160362299c15941a642c427317 (diff) |
grass: fix build on aarch64-darwin
Diffstat (limited to 'pkgs/applications/gis')
-rw-r--r-- | pkgs/applications/gis/grass/default.nix | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/pkgs/applications/gis/grass/default.nix b/pkgs/applications/gis/grass/default.nix index 8cc7caee67433..5d1411bfcc07a 100644 --- a/pkgs/applications/gis/grass/default.nix +++ b/pkgs/applications/gis/grass/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, fetchFromGitHub, flex, bison, pkg-config, zlib, libtiff, libpng, fftw -, cairo, readline, ffmpeg, makeWrapper, wxGTK31, wxmac, netcdf, blas -, proj, gdal, geos, sqlite, postgresql, libmysqlclient, python3Packages, libLAS, proj-datumgrid +, cairo, readline, ffmpeg, makeWrapper, wxGTK32, libiconv, netcdf, blas +, proj, gdal, geos, sqlite, postgresql, libmysqlclient, python3Packages, proj-datumgrid , zstd, pdal, wrapGAppsHook }: @@ -15,15 +15,18 @@ stdenv.mkDerivation rec { sha256 = "sha256-VK9FCqIwHGmeJe5lk12lpAGcsC1aPRBiI+XjACXjDd4="; }; - nativeBuildInputs = [ pkg-config makeWrapper ]; - buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite - readline ffmpeg netcdf geos postgresql libmysqlclient blas - libLAS proj-datumgrid zstd wrapGAppsHook ] - ++ 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 - ++ lib.optional stdenv.isLinux wxPython_4_1); + nativeBuildInputs = [ + pkg-config bison flex makeWrapper wrapGAppsHook + gdal geos libmysqlclient netcdf pdal + ] ++ (with python3Packages; [ python-dateutil numpy wxPython_4_1 ]); + + buildInputs = [ + cairo zlib proj libtiff libpng fftw sqlite + readline ffmpeg postgresql blas wxGTK32 + proj-datumgrid zstd + ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; + + strictDeps = true; # On Darwin the installer tries to symlink the help files into a system # directory @@ -50,7 +53,6 @@ stdenv.mkDerivation rec { "--with-mysql-includes=${lib.getDev libmysqlclient}/include/mysql" "--with-mysql-libs=${libmysqlclient}/lib/mysql" "--with-blas" - "--with-liblas=${libLAS}/bin/liblas-config" "--with-zstd" "--with-fftw" "--with-pthread" |