1{
2 mkDerivation,
3 extra-cmake-modules,
4 kdoctools,
5 libdbusmenu,
6 pam,
7 wayland,
8 appstream,
9 kdeclarative,
10 kdelibs4support,
11 kpeople,
12 kconfig,
13 krunner,
14 kinit,
15 kirigami-addons,
16 kwayland,
17 kwin,
18 plasma-framework,
19 telepathy,
20 libphonenumber,
21 protobuf,
22 libqofono,
23 modemmanager-qt,
24 networkmanager-qt,
25 plasma-workspace,
26 maliit-framework,
27 maliit-keyboard,
28 qtfeedback,
29 qttools,
30}:
31
32mkDerivation {
33 pname = "plasma-mobile";
34
35 nativeBuildInputs = [
36 extra-cmake-modules
37 kdoctools
38 ];
39 buildInputs = [
40 appstream
41 libdbusmenu
42 pam
43 wayland
44 kdeclarative
45 kdelibs4support
46 kpeople
47 kconfig
48 krunner
49 kinit
50 kirigami-addons
51 kwayland
52 kwin
53 plasma-framework
54 telepathy
55 libphonenumber
56 protobuf
57 libqofono
58 modemmanager-qt
59 networkmanager-qt
60 maliit-framework
61 maliit-keyboard
62 plasma-workspace
63 qtfeedback
64 ];
65
66 postPatch = ''
67 substituteInPlace bin/startplasmamobile.in \
68 --replace @KDE_INSTALL_FULL_LIBEXECDIR@ "${plasma-workspace}/libexec"
69
70 substituteInPlace bin/plasma-mobile.desktop.cmake \
71 --replace @CMAKE_INSTALL_FULL_LIBEXECDIR@ "${plasma-workspace}/libexec"
72 '';
73
74 # Ensures dependencies like libqofono (at the very least) are present for the shell.
75 preFixup = ''
76 wrapQtApp "$out/bin/startplasmamobile"
77 '';
78
79 passthru.providedSessions = [ "plasma-mobile" ];
80}