87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
77 lines
1.4 KiB
Nix
77 lines
1.4 KiB
Nix
{ 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" ];
|
|
}
|