kdePackages.plasma-mobile: fix for services.displayManager.sessionPackages

This commit is contained in:
Someone Serge 2024-06-11 13:47:51 +00:00
parent e46ce3db04
commit 23480eaa8d

View File

@ -2,10 +2,18 @@
mkKdeDerivation,
pkg-config,
qtsensors,
plasma-workspace,
}:
mkKdeDerivation {
pname = "plasma-mobile";
extraNativeBuildInputs = [pkg-config];
extraBuildInputs = [qtsensors];
postFixup = ''
substituteInPlace "$out/share/wayland-sessions/plasma-mobile.desktop" \
--replace-fail \
"$out/libexec/plasma-dbus-run-session-if-needed" \
"${plasma-workspace}/libexec/plasma-dbus-run-session-if-needed"
'';
passthru.providedSessions = [ "plasma-mobile" ];
}