From 23480eaa8de723701d3ebae440b06d016c7d3e53 Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Tue, 11 Jun 2024 13:47:51 +0000 Subject: [PATCH] kdePackages.plasma-mobile: fix for services.displayManager.sessionPackages --- pkgs/kde/plasma/plasma-mobile/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/kde/plasma/plasma-mobile/default.nix b/pkgs/kde/plasma/plasma-mobile/default.nix index 92bb1d66d5e3..8c6766e13b03 100644 --- a/pkgs/kde/plasma/plasma-mobile/default.nix +++ b/pkgs/kde/plasma/plasma-mobile/default.nix @@ -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" ]; }