2021-12-06 16:07:01 +00:00
|
|
|
{
|
|
|
|
mkDerivation, lib,
|
|
|
|
|
|
|
|
extra-cmake-modules, kdoctools,
|
|
|
|
|
|
|
|
coreutils, dbus, gnugrep, gnused, libdbusmenu, pam, wayland, appstream,
|
|
|
|
|
|
|
|
kdeclarative, kdelibs4support, kpeople, kconfig, krunner, kinit, kwayland, kwin,
|
|
|
|
plasma-framework, telepathy, libphonenumber, protobuf, libqofono, modemmanager-qt,
|
2022-03-30 09:31:56 +00:00
|
|
|
networkmanager-qt, plasma-workspace,
|
2022-09-30 11:47:45 +00:00
|
|
|
maliit-framework, maliit-keyboard, qtfeedback,
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
qtwayland, qttools
|
|
|
|
}:
|
|
|
|
|
|
|
|
let inherit (lib) getBin getLib; in
|
|
|
|
|
|
|
|
mkDerivation {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "plasma-mobile";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [
|
|
|
|
appstream libdbusmenu pam wayland
|
|
|
|
kdeclarative kdelibs4support kpeople kconfig krunner kinit kwayland kwin
|
|
|
|
plasma-framework telepathy libphonenumber protobuf libqofono modemmanager-qt
|
2022-09-30 11:47:45 +00:00
|
|
|
networkmanager-qt maliit-framework maliit-keyboard plasma-workspace qtfeedback
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace bin/kwinwrapper.in \
|
|
|
|
--replace @KDE_INSTALL_FULL_LIBEXECDIR@ "${plasma-workspace}/libexec"
|
|
|
|
|
|
|
|
substituteInPlace bin/plasma-mobile.desktop.cmake \
|
|
|
|
--replace @CMAKE_INSTALL_FULL_LIBEXECDIR@ "${plasma-workspace}/libexec"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Ensures dependencies like libqofono (at the very least) are present for the shell.
|
|
|
|
preFixup = ''
|
|
|
|
wrapQtApp "$out/bin/kwinwrapper"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.providedSessions = [ "plasma-mobile" ];
|
|
|
|
}
|