diff options
author | Thomas Tuegel <ttuegel@mailbox.org> | 2017-05-15 06:44:33 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@mailbox.org> | 2017-06-18 08:41:57 -0500 |
commit | 3f3d33a07867116446ec9b5e2675ef1c8de8127d (patch) | |
tree | b0c362b10bb8e908c2be61aadae8f9cdb69a8c6e /pkgs/desktops/plasma-5 | |
parent | 08d25152b85fb24f7b5b85efe25d6be4deb12227 (diff) | |
download | nixlib-3f3d33a07867116446ec9b5e2675ef1c8de8127d.tar nixlib-3f3d33a07867116446ec9b5e2675ef1c8de8127d.tar.gz nixlib-3f3d33a07867116446ec9b5e2675ef1c8de8127d.tar.bz2 nixlib-3f3d33a07867116446ec9b5e2675ef1c8de8127d.tar.lz nixlib-3f3d33a07867116446ec9b5e2675ef1c8de8127d.tar.xz nixlib-3f3d33a07867116446ec9b5e2675ef1c8de8127d.tar.zst nixlib-3f3d33a07867116446ec9b5e2675ef1c8de8127d.zip |
qt5: use distinct `lib/qt-5.x` prefix for each minor version
Using a distinct prefix for plugins and QML libraries allows multiple Qt 5 minor versions to coexist in the same environment.
Diffstat (limited to 'pkgs/desktops/plasma-5')
-rw-r--r-- | pkgs/desktops/plasma-5/libkscreen/default.nix | 2 | ||||
-rw-r--r-- | pkgs/desktops/plasma-5/startkde/default.nix | 15 | ||||
-rwxr-xr-x | pkgs/desktops/plasma-5/startkde/startkde.sh | 4 |
3 files changed, 3 insertions, 18 deletions
diff --git a/pkgs/desktops/plasma-5/libkscreen/default.nix b/pkgs/desktops/plasma-5/libkscreen/default.nix index afb2c20e90cc..6881f95e6d58 100644 --- a/pkgs/desktops/plasma-5/libkscreen/default.nix +++ b/pkgs/desktops/plasma-5/libkscreen/default.nix @@ -14,6 +14,6 @@ plasmaPackage { ]; patches = copyPathsToStore (lib.readPathsFromFile ./. ./series); preConfigure = '' - NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputLib}/lib/qt5/plugins/kf5/kscreen\"" + NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputLib}/$qtPluginPrefix/kf5/kscreen\"" ''; } diff --git a/pkgs/desktops/plasma-5/startkde/default.nix b/pkgs/desktops/plasma-5/startkde/default.nix index 87c72fdc5995..25ebdd7f332c 100644 --- a/pkgs/desktops/plasma-5/startkde/default.nix +++ b/pkgs/desktops/plasma-5/startkde/default.nix @@ -34,21 +34,8 @@ in runCommand "startkde" env '' addToSearchPath suffixPATH "$p/lib/libexec/kf5" done - # Configure Qt search paths - QT_PLUGIN_PATH= - QML_IMPORT_PATH= - QML2_IMPORT_PATH= - for p in $libs; do - addToSearchPath QT_PLUGIN_PATH "$p/lib/qt5/plugins" - addToSearchPath QML_IMPORT_PATH "$p/lib/qt5/imports" - addToSearchPath QML2_IMPORT_PATH "$p/lib/qt5/qml" - done - substitute ${./startkde.sh} "$out" \ --subst-var shell \ - --subst-var suffixPATH \ - --subst-var QT_PLUGIN_PATH \ - --subst-var QML_IMPORT_PATH \ - --subst-var QML2_IMPORT_PATH + --subst-var suffixPATH chmod +x "$out" '' diff --git a/pkgs/desktops/plasma-5/startkde/startkde.sh b/pkgs/desktops/plasma-5/startkde/startkde.sh index c38450516e91..53e7fbb05694 100755 --- a/pkgs/desktops/plasma-5/startkde/startkde.sh +++ b/pkgs/desktops/plasma-5/startkde/startkde.sh @@ -2,9 +2,7 @@ PATH="$PATH${PATH:+:}@suffixPATH@" -export QT_PLUGIN_PATH="$QT_PLUGIN_PATH${QT_PLUGIN_PATH:+:}@QT_PLUGIN_PATH@" -export QML_IMPORT_PATH="$QML_IMPORT_PATH${QML_IMPORT_PATH:+:}@QML_IMPORT_PATH@" -export QML2_IMPORT_PATH="$QML2_IMPORT_PATH${QML2_IMPORT_PATH:+:}@QML2_IMPORT_PATH@" +echo "NIX_PROFILES=\"$NIX_PROFILES\"" kbuildsycoca5 |