2024-02-05 15:43:41 +00:00
|
|
|
{
|
|
|
|
mkKdeDerivation,
|
|
|
|
pkg-config,
|
|
|
|
qtsensors,
|
2024-06-11 13:47:51 +00:00
|
|
|
plasma-workspace,
|
2024-02-05 15:43:41 +00:00
|
|
|
}:
|
|
|
|
mkKdeDerivation {
|
|
|
|
pname = "plasma-mobile";
|
|
|
|
|
|
|
|
extraNativeBuildInputs = [pkg-config];
|
|
|
|
extraBuildInputs = [qtsensors];
|
2024-06-11 13:47:51 +00:00
|
|
|
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" ];
|
2024-02-05 15:43:41 +00:00
|
|
|
}
|