nixpkgs/pkgs/applications/plasma-mobile/plasma-dialer.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

87 lines
1.5 KiB
Nix
Raw Normal View History

2021-03-22 22:45:47 +00:00
{ lib
, mkDerivation
, cmake
, extra-cmake-modules
, callaudiod
2021-03-22 22:45:47 +00:00
, kcontacts
, kcoreaddons
, kdbusaddons
, ki18n
, kio
, kirigami-addons
2021-03-22 22:45:47 +00:00
, kirigami2
, knotifications
, kpeople
, libphonenumber
, libselinux
, libsepol
, modemmanager-qt
, pcre
, plasma-wayland-protocols
2021-03-22 22:45:47 +00:00
, protobuf
, pulseaudio-qt
, qtfeedback
, qtmpris
2021-03-22 22:45:47 +00:00
, qtquickcontrols2
, util-linux
, wayland
, wayland-protocols
2021-03-22 22:45:47 +00:00
}:
mkDerivation rec {
pname = "plasma-dialer";
nativeBuildInputs = [
cmake
extra-cmake-modules
];
buildInputs = [
callaudiod
2021-03-22 22:45:47 +00:00
kcontacts
kcoreaddons
kdbusaddons
ki18n
kio
kirigami-addons
2021-03-22 22:45:47 +00:00
kirigami2
knotifications
kpeople
libphonenumber
libselinux
libsepol
modemmanager-qt
pcre
plasma-wayland-protocols
2021-03-22 22:45:47 +00:00
protobuf # Needed by libphonenumber
pulseaudio-qt
qtfeedback
qtmpris
2021-03-22 22:45:47 +00:00
qtquickcontrols2
util-linux
wayland
wayland-protocols
2021-03-22 22:45:47 +00:00
];
postPatch = ''
substituteInPlace plasma-dialer/org.kde.phone.dialer.desktop \
--replace "/usr/bin/" "$out/bin/"
'';
# Plasma gear 22.09 shipped before KWin 5.26 was made available.
# This feature requires 5.26. Otherwise plasma-dialer segfaults.
# Note that we may need to keep it disabled until it stops segfaulting outside of KWin.
cmakeFlags = [
"-DDIALER_BUILD_SHELL_OVERLAY=OFF"
];
2021-03-22 22:45:47 +00:00
meta = with lib; {
description = "Dialer for Plasma Mobile";
homepage = "https://invent.kde.org/plasma-mobile/plasma-dialer";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ samueldr ];
};
}