about summary refs log tree commit diff
path: root/pkgs/applications/gis/qgis
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <esm@eduardosm.net>2021-05-17 16:35:37 +0200
committerEduardo Sánchez Muñoz <esm@eduardosm.net>2021-06-27 00:25:13 +0200
commit3626f2663bec349edeb7b273735b3fc9d37b0cc0 (patch)
treeb59843aed07d26a21a81587212abe32bc060cb01 /pkgs/applications/gis/qgis
parent7079b4c050719debb8da9da95df6a569afe32137 (diff)
qgis: fix PyQt5 SIP path
Diffstat (limited to 'pkgs/applications/gis/qgis')
-rw-r--r--pkgs/applications/gis/qgis/unwrapped.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/gis/qgis/unwrapped.nix b/pkgs/applications/gis/qgis/unwrapped.nix
index 5b972ae5017fa..2ebe0ac253fe5 100644
--- a/pkgs/applications/gis/qgis/unwrapped.nix
+++ b/pkgs/applications/gis/qgis/unwrapped.nix
@@ -77,12 +77,12 @@ in mkDerivation rec {
   # build to use PYQT5_SIP_DIR consistently.
   postPatch = ''
     substituteInPlace cmake/FindPyQt5.py \
-      --replace 'sip_dir = cfg.default_sip_dir' 'sip_dir = "${python3Packages.pyqt5}/share/sip/PyQt5"'
+      --replace 'sip_dir = cfg.default_sip_dir' 'sip_dir = "${python3Packages.pyqt5}/${python3Packages.python.sitePackages}/PyQt5/bindings"'
   '';
 
   cmakeFlags = [
     "-DCMAKE_SKIP_BUILD_RPATH=OFF"
-    "-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/share/sip/PyQt5"
+    "-DPYQT5_SIP_DIR=${python3Packages.pyqt5}/${python3Packages.python.sitePackages}/PyQt5/bindings"
     "-DQSCI_SIP_DIR=${python3Packages.qscintilla-qt5}/share/sip/PyQt5"
   ] ++ lib.optional (!withWebKit) "-DWITH_QTWEBKIT=OFF"
     ++ lib.optional withGrass "-DGRASS_PREFIX7=${grass}/${grass.name}";