2022-10-21 18:38:19 +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
|
|
|
|
, networkmanager-qt
|
|
|
|
, plasma-workspace
|
|
|
|
, maliit-framework
|
|
|
|
, maliit-keyboard
|
|
|
|
, qtfeedback
|
|
|
|
, qtwayland
|
|
|
|
, qttools
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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 = [
|
2022-10-21 18:38:19 +00:00
|
|
|
appstream
|
|
|
|
libdbusmenu
|
|
|
|
pam
|
|
|
|
wayland
|
|
|
|
kdeclarative
|
|
|
|
kdelibs4support
|
|
|
|
kpeople
|
|
|
|
kconfig
|
|
|
|
krunner
|
|
|
|
kinit
|
|
|
|
kwayland
|
|
|
|
kwin
|
|
|
|
plasma-framework
|
|
|
|
telepathy
|
|
|
|
libphonenumber
|
|
|
|
protobuf
|
|
|
|
libqofono
|
|
|
|
modemmanager-qt
|
|
|
|
networkmanager-qt
|
|
|
|
maliit-framework
|
|
|
|
maliit-keyboard
|
|
|
|
plasma-workspace
|
|
|
|
qtfeedback
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-10-21 18:38:19 +00:00
|
|
|
substituteInPlace bin/startplasmamobile.in \
|
2021-12-06 16:07:01 +00:00
|
|
|
--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 = ''
|
2022-10-21 18:38:19 +00:00
|
|
|
wrapQtApp "$out/bin/startplasmamobile"
|
2021-12-06 16:07:01 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.providedSessions = [ "plasma-mobile" ];
|
|
|
|
}
|