makeQtWrapper: always wrap impurely
This commit is contained in:
parent
5292e67e50
commit
5a2c45427b
@ -28,9 +28,6 @@ plasmaPackage rec {
|
|||||||
kidletime krunner ktexteditor kwin libkscreen libksysguard
|
kidletime krunner ktexteditor kwin libkscreen libksysguard
|
||||||
plasma-framework qtquick1 qtquickcontrols qtx11extras solid
|
plasma-framework qtquick1 qtquickcontrols qtx11extras solid
|
||||||
];
|
];
|
||||||
# All propagatedBuildInputs should be present in the profile because
|
|
||||||
# impure wrappers are used below.
|
|
||||||
propagatedUserEnvPkgs = propagatedBuildInputs;
|
|
||||||
patches = [ ./0001-startkde-NixOS-patches.patch ];
|
patches = [ ./0001-startkde-NixOS-patches.patch ];
|
||||||
|
|
||||||
inherit bash coreutils gnused gnugrep socat;
|
inherit bash coreutils gnused gnugrep socat;
|
||||||
@ -42,7 +39,6 @@ plasmaPackage rec {
|
|||||||
--replace kdostartupconfig5 $out/bin/kdostartupconfig5
|
--replace kdostartupconfig5 $out/bin/kdostartupconfig5
|
||||||
'';
|
'';
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
export QT_WRAPPER_IMPURE=1
|
|
||||||
wrapQtProgram "$out/bin/ksmserver"
|
wrapQtProgram "$out/bin/ksmserver"
|
||||||
wrapQtProgram "$out/bin/plasmawindowed"
|
wrapQtProgram "$out/bin/plasmawindowed"
|
||||||
wrapQtProgram "$out/bin/kcminit_startup"
|
wrapQtProgram "$out/bin/kcminit_startup"
|
||||||
|
@ -8,19 +8,11 @@ addQtDependency() {
|
|||||||
wrapQtProgram() {
|
wrapQtProgram() {
|
||||||
local prog="$1"
|
local prog="$1"
|
||||||
shift
|
shift
|
||||||
if [[ -n "$QT_WRAPPER_IMPURE" ]]; then
|
wrapProgram "$prog" \
|
||||||
wrapProgram "$prog" \
|
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
|
||||||
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
|
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
|
||||||
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
|
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
|
||||||
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
|
"$@"
|
||||||
"$@"
|
|
||||||
else
|
|
||||||
wrapProgram "$prog" \
|
|
||||||
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
|
|
||||||
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
|
|
||||||
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
|
|
||||||
"$@"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
makeQtWrapper() {
|
makeQtWrapper() {
|
||||||
@ -28,19 +20,11 @@ makeQtWrapper() {
|
|||||||
local new="$2"
|
local new="$2"
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
if [[ -n "$QT_WRAPPER_IMPURE" ]]; then
|
makeWrapper "$old" "$new" \
|
||||||
makeWrapper "$old" "$new" \
|
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
|
||||||
--prefix QT_PLUGIN_PATH : "$QT_PLUGIN_PATH" \
|
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
|
||||||
--prefix QML_IMPORT_PATH : "$QML_IMPORT_PATH" \
|
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
|
||||||
--prefix QML2_IMPORT_PATH : "$QML2_IMPORT_PATH" \
|
"$@"
|
||||||
"$@"
|
|
||||||
else
|
|
||||||
makeWrapper "$old" "$new" \
|
|
||||||
--set QT_PLUGIN_PATH "$QT_PLUGIN_PATH" \
|
|
||||||
--set QML_IMPORT_PATH "$QML_IMPORT_PATH" \
|
|
||||||
--set QML2_IMPORT_PATH "$QML2_IMPORT_PATH" \
|
|
||||||
"$@"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# cannot use addToSearchPath because these directories may not exist yet
|
# cannot use addToSearchPath because these directories may not exist yet
|
||||||
|
Loading…
Reference in New Issue
Block a user