1{
2 mkKdeDerivation,
3 qt5compat,
4 qtsvg,
5 pkg-config,
6 samba,
7 libssh,
8 libmtp,
9 libimobiledevice,
10 gperf,
11 libtirpc,
12 openexr,
13 taglib,
14 shared-mime-info,
15 libappimage,
16 xorg,
17 kio,
18}:
19mkKdeDerivation {
20 pname = "kio-extras";
21
22 patches = [
23 # An upstream merge request is pending for this https://invent.kde.org/network/kio-extras/-/merge_requests/422
24 ./add-nixos-man-db-config-path.patch
25 ];
26 extraNativeBuildInputs = [
27 pkg-config
28 gperf
29 shared-mime-info
30 ];
31 extraBuildInputs = [
32 qt5compat
33 qtsvg
34
35 samba
36 libssh
37 libmtp
38 libimobiledevice
39 gperf
40 libtirpc
41 openexr
42 taglib
43 libappimage
44 xorg.libXcursor
45 ];
46
47 postInstall = ''
48 substituteInPlace $out/share/dbus-1/services/org.kde.kmtpd5.service \
49 --replace-fail Exec=$out/libexec/kf6/kiod6 Exec=${kio}/libexec/kf6/kiod6
50 '';
51}