mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
19 lines
502 B
Nix
19 lines
502 B
Nix
{
|
|
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" ];
|
|
}
|