about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/plasma-5/plasma-mobile/default.nix
blob: a37a8cfe12b894d246e11817145a201856cfc162 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{ mkDerivation
, lib
, extra-cmake-modules
, kdoctools
, libdbusmenu
, pam
, wayland
, appstream
, kdeclarative
, kdelibs4support
, kpeople
, kconfig
, krunner
, kinit
, kirigami-addons
, kwayland
, kwin
, plasma-framework
, telepathy
, libphonenumber
, protobuf
, libqofono
, modemmanager-qt
, networkmanager-qt
, plasma-workspace
, maliit-framework
, maliit-keyboard
, qtfeedback
, qttools
}:

mkDerivation {
  pname = "plasma-mobile";

  nativeBuildInputs = [ extra-cmake-modules kdoctools ];
  buildInputs = [
    appstream
    libdbusmenu
    pam
    wayland
    kdeclarative
    kdelibs4support
    kpeople
    kconfig
    krunner
    kinit
    kirigami-addons
    kwayland
    kwin
    plasma-framework
    telepathy
    libphonenumber
    protobuf
    libqofono
    modemmanager-qt
    networkmanager-qt
    maliit-framework
    maliit-keyboard
    plasma-workspace
    qtfeedback
  ];

  postPatch = ''
    substituteInPlace bin/startplasmamobile.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/startplasmamobile"
  '';

  passthru.providedSessions = [ "plasma-mobile" ];
}