mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
28 lines
636 B
Nix
28 lines
636 B
Nix
{
|
|
mkKdeDerivation,
|
|
pkg-config,
|
|
qtsensors,
|
|
qtwayland,
|
|
plasma-workspace,
|
|
}:
|
|
mkKdeDerivation {
|
|
pname = "plasma-mobile";
|
|
|
|
extraNativeBuildInputs = [ pkg-config ];
|
|
extraBuildInputs = [
|
|
qtsensors
|
|
qtwayland
|
|
];
|
|
|
|
# FIXME: work around Qt 6.10 cmake API changes
|
|
cmakeFlags = [ "-DQT_FIND_PRIVATE_MODULES=1" ];
|
|
|
|
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" ];
|
|
}
|