summary refs log tree commit diff
path: root/pkgs/applications/gis
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2017-03-13 16:05:31 +0100
committerLancelot SIX <lsix@lancelotsix.com>2017-03-13 16:05:31 +0100
commit1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6 (patch)
tree827ac86506da025e4543ede55c1dfa88e96d9ebb /pkgs/applications/gis
parent5f64bb7903ebe1646f02e82aa8c55c40561e6bc7 (diff)
downloadnixpkgs-1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6.tar
nixpkgs-1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6.tar.gz
nixpkgs-1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6.tar.bz2
nixpkgs-1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6.tar.lz
nixpkgs-1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6.tar.xz
nixpkgs-1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6.tar.zst
nixpkgs-1375a2eecf52dc6f4fe61a52b9beadc1ffbc5dc6.zip
qgis: Fix build after pythonPackages.sip update
QGis seems to have a problem with recent sip releases. This patch fixes
the issue.
Diffstat (limited to 'pkgs/applications/gis')
-rw-r--r--pkgs/applications/gis/qgis/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/applications/gis/qgis/default.nix b/pkgs/applications/gis/qgis/default.nix
index 004d11fe157..d7dbaeb1fc2 100644
--- a/pkgs/applications/gis/qgis/default.nix
+++ b/pkgs/applications/gis/qgis/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
+{ stdenv, fetchurl, fetchpatch, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
 , qwt, fcgi, python2Packages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper
 , qjson, qca2, txt2tags, openssl
 , withGrass ? false, grass
@@ -14,6 +14,15 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake makeWrapper ];
 
+  patches = [
+    # See https://hub.qgis.org/issues/16071
+    (fetchpatch {
+      name = "fix-build-against-recent-sip";
+      url = "https://github.com/qgis/QGIS/commit/85a0db24f32351f6096cd8282f03ad5c2f4e6ef5.patch";
+      sha256 = "0snspzdrpawd7j5b69i8kk7pmmy6ij8bn02bzg94qznfpf9ihf30";
+    })
+  ];
+
   # fatal error: ui_qgsdelimitedtextsourceselectbase.h: No such file or directory
   #enableParallelBuilding = true;