[Backport release-21.11] fix MTP support on KDE Plasma and Dolphin (#156981)

* fix MTP support on KDE Plasma and Dolphin

(cherry picked from commit c1e4f4d661)

* Update pkgs/applications/kde/kio-extras.nix

Co-authored-by: ElXreno <elxreno@gmail.com>
(cherry picked from commit a2415efca6)

Co-authored-by: Oleg Kapitonov <kapitonov1987@gmail.com>
Co-authored-by: Peter Hoeg <peter@hoeg.com>
This commit is contained in:
github-actions[bot]
2022-01-28 12:13:30 +08:00
committed by GitHub
parent 746001202d
commit 741fdb7e29
2 changed files with 9 additions and 1 deletions

View File

@@ -372,7 +372,8 @@ in
# Extra UDEV rules used by Solid
services.udev.packages = [
pkgs.libmtp
# libmtp has "bin", "dev", "out" outputs. UDEV rules file is in "out".
pkgs.libmtp.out
pkgs.media-player-info
];

View File

@@ -19,5 +19,12 @@ mkDerivation {
kpty syntax-highlighting libmtp libssh openexr openslp
phonon qtsvg samba solid gperf
];
# org.kde.kmtpd5 DBUS service launches kiod5 binary from kio derivation, not from kio-extras
postInstall = ''
substituteInPlace $out/share/dbus-1/services/org.kde.kmtpd5.service \
--replace Exec=$out Exec=${kio}
'';
CXXFLAGS = [ "-I${ilmbase.dev}/include/OpenEXR" ];
}