git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #38916 from mpickering/qgis-darwin-pr

QGIS and GRASS fixes

commit615599c6954268f85c88e4beb237a4447ab0e4a3 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 14 Apr 2018, 10:22 (9 years ago) parent8d0791c1fe53b8
2 files changed+9−2
pkgs/applications/gis/grass/default.nix+5 pkgs/applications/gis/qgis/default.nix+4−2
pkgs/applications/gis/grass/default.nix+5
@@ -35,6 +35,9 @@ stdenv.mkDerivation {
3535 "--with-blas"
3636 ];
3737
38+ # Otherwise a very confusing "Can't load GDAL library" error
39+ makeFlags = stdenv.lib.optional stdenv.isDarwin "GDAL_DYNAMIC=";
40+
3841 /* Ensures that the python script run at build time are actually executable;
3942 * otherwise, patchShebangs ignores them. */
4043 postConfigure = ''
@@ -73,6 +76,7 @@ stdenv.mkDerivation {
7376 --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable} \
7477 --suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
7578 ln -s $out/grass-*/lib $out/lib
79+ ln -s $out/grass-*/include $out/include
7680 '';
7781
7882 enableParallelBuilding = true;
@@ -82,5 +86,6 @@ stdenv.mkDerivation {
8286 description = "GIS software suite used for geospatial data management and analysis, image processing, graphics and maps production, spatial modeling, and visualization";
8387 license = stdenv.lib.licenses.gpl2Plus;
8488 platforms = stdenv.lib.platforms.all;
89+ maintainers = with stdenv.lib.maintainers; [mpickering];
8590 };
8691}
pkgs/applications/gis/qgis/default.nix+4−2
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, fetchpatch, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
22, qwt, fcgi, python2Packages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper
33, qjson, qca2, txt2tags, openssl, darwin, pkgconfig
4−, withGrass ? false, grass, IOKit, ApplicationServices
4+, withGrass ? true, grass, IOKit, ApplicationServices
55}:
66
77stdenv.mkDerivation rec {
@@ -58,11 +58,13 @@ stdenv.mkDerivation rec {
5858 '') +
5959 (stdenv.lib.optionalString stdenv.isDarwin ''
6060 # Necessary for QGIS to find the correct default GRASS path
61+ # Plugins look for gdal tools like deminfo on the PATH
6162 ${stdenv.lib.optionalString withGrass "ln -sf ${grass} $out/QGIS.app/Contents/MacOS/grass"}
6263 for file in $(find $out -type f -name "QGIS"); do
6364 wrapProgram "$file" \
6465 --prefix DYLD_LIBRARY_PATH : "${qwt}/lib" \
6566 --prefix DYLD_LIBRARY_PATH : "${qscintilla}/lib" \
67+ --prefix PATH : "${gdal}/bin" \
6668 ${stdenv.lib.optionalString withGrass "--prefix PATH : ${grass}/bin"} \
6769 --set PYTHONPATH $PYTHONPATH
6870 done
@@ -75,6 +77,6 @@ stdenv.mkDerivation rec {
7577 homepage = http://www.qgis.org;
7678 license = stdenv.lib.licenses.gpl2Plus;
7779 platforms = with stdenv.lib.platforms; unix;
78− maintainers = with stdenv.lib.maintainers; [viric];
80+ maintainers = with stdenv.lib.maintainers; [viric mpickering];
7981 };
8082}