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, mkKdeDerivation,
pkg-config, pkg-config,
qtsensors, qtsensors,
plasma-workspace,
}: }:
mkKdeDerivation { mkKdeDerivation {
pname = "plasma-mobile"; pname = "plasma-mobile";
extraNativeBuildInputs = [pkg-config]; extraNativeBuildInputs = [pkg-config];
extraBuildInputs = [qtsensors]; 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" ];
} }