Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 88 lines 1.6 kB view raw
1{ 2 lib, 3 mkDerivation, 4 5 cmake, 6 extra-cmake-modules, 7 8 callaudiod, 9 kcontacts, 10 kcoreaddons, 11 kdbusaddons, 12 ki18n, 13 kio, 14 kirigami-addons, 15 kirigami2, 16 knotifications, 17 kpeople, 18 libphonenumber, 19 libselinux, 20 libsepol, 21 modemmanager-qt, 22 pcre, 23 plasma-wayland-protocols, 24 protobuf, 25 pulseaudio-qt, 26 qtfeedback, 27 qtmpris, 28 qtquickcontrols2, 29 util-linux, 30 wayland, 31 wayland-protocols, 32}: 33 34mkDerivation { 35 pname = "plasma-dialer"; 36 37 nativeBuildInputs = [ 38 cmake 39 extra-cmake-modules 40 ]; 41 42 buildInputs = [ 43 callaudiod 44 kcontacts 45 kcoreaddons 46 kdbusaddons 47 ki18n 48 kio 49 kirigami-addons 50 kirigami2 51 knotifications 52 kpeople 53 libphonenumber 54 libselinux 55 libsepol 56 modemmanager-qt 57 pcre 58 plasma-wayland-protocols 59 protobuf # Needed by libphonenumber 60 pulseaudio-qt 61 qtfeedback 62 qtmpris 63 qtquickcontrols2 64 util-linux 65 wayland 66 wayland-protocols 67 ]; 68 69 postPatch = '' 70 substituteInPlace plasma-dialer/org.kde.phone.dialer.desktop \ 71 --replace "/usr/bin/" "$out/bin/" 72 ''; 73 74 # Plasma gear 22.09 shipped before KWin 5.26 was made available. 75 # This feature requires 5.26. Otherwise plasma-dialer segfaults. 76 # Note that we may need to keep it disabled until it stops segfaulting outside of KWin. 77 cmakeFlags = [ 78 "-DDIALER_BUILD_SHELL_OVERLAY=OFF" 79 ]; 80 81 meta = with lib; { 82 description = "Dialer for Plasma Mobile"; 83 mainProgram = "plasmaphonedialer"; 84 homepage = "https://invent.kde.org/plasma-mobile/plasma-dialer"; 85 license = licenses.gpl3Plus; 86 maintainers = [ ]; 87 }; 88}