From 39e585b9252c4115d14fdc23134004b1d08417c4 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 27 Oct 2015 08:26:07 +0100 Subject: qgis: enable GRASS (close #9931) --- pkgs/applications/gis/qgis/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pkgs/applications') diff --git a/pkgs/applications/gis/qgis/default.nix b/pkgs/applications/gis/qgis/default.nix index 8d9771c913488..b771d2552d87d 100644 --- a/pkgs/applications/gis/qgis/default.nix +++ b/pkgs/applications/gis/qgis/default.nix @@ -1,11 +1,14 @@ -{ stdenv, fetchurl, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl, - qwt, fcgi, pythonPackages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper }: +{ stdenv, fetchurl, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl +, qwt, fcgi, pythonPackages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper +, withGrass ? false, grass +}: stdenv.mkDerivation rec { name = "qgis-2.10.1"; buildInputs = [ gdal qt4 flex bison proj geos xlibsWrapper sqlite gsl qwt qscintilla fcgi libspatialindex libspatialite postgresql ] ++ + (stdenv.lib.optional withGrass grass) ++ (with pythonPackages; [ numpy psycopg2 ]) ++ [ pythonPackages.qscintilla ]; nativeBuildInputs = [ cmake makeWrapper ]; @@ -24,6 +27,8 @@ stdenv.mkDerivation rec { sha256 = "79119b54642edaffe3cda513531eb7b81913e013954a49c6d3b21c8b00143307"; }; + cmakeFlags = stdenv.lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}"; + postInstall = '' wrapProgram $out/bin/qgis \ --prefix PYTHONPATH : $PYTHONPATH -- cgit 1.4.1