summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/gis
diff options
context:
space:
mode:
authorIvan Mincik <ivan.mincik@gmail.com>2024-06-24 10:14:34 +0200
committerIvan Mincik <ivan.mincik@gmail.com>2024-06-24 10:14:34 +0200
commit8bd8c7d4f25713f5f2218d72deb48dc77c4ce31d (patch)
tree5df088374b8b01167c9db78aad46f54686986967 /pkgs/applications/gis
parenta88480fa1de11b069669761c70a88f70a3122c47 (diff)
qgis-ltr: nicer setting of QT environment variables
Diffstat (limited to 'pkgs/applications/gis')
-rw-r--r--pkgs/applications/gis/qgis/unwrapped-ltr.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/applications/gis/qgis/unwrapped-ltr.nix b/pkgs/applications/gis/qgis/unwrapped-ltr.nix
index 230bee53fa3c..351529415025 100644
--- a/pkgs/applications/gis/qgis/unwrapped-ltr.nix
+++ b/pkgs/applications/gis/qgis/unwrapped-ltr.nix
@@ -147,9 +147,7 @@ in mkDerivation rec {
# Add path to Qt platform plugins
# (offscreen is needed by "${APIS_SRC_DIR}/generate_console_pap.py")
- preBuild = ''
- export QT_QPA_PLATFORM_PLUGIN_PATH=${qtbase.bin}/lib/qt-${qtbase.version}/plugins/platforms
- '';
+ env.QT_QPA_PLATFORM_PLUGIN_PATH="${qtbase}/${qtbase.qtPluginPrefix}/platforms";
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
@@ -164,7 +162,7 @@ in mkDerivation rec {
);
qtWrapperArgs = [
- "--set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-${qtbase.version}/plugins/platforms"
+ "--set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase}/${qtbase.qtPluginPrefix}/platforms"
];
dontWrapGApps = true; # wrapper params passed below