1{
2 mkDerivation,
3 lib,
4 ghostscript,
5 replaceVars,
6 extra-cmake-modules,
7 karchive,
8 kio,
9 libkexiv2,
10 libkdcraw,
11 kdegraphics-mobipocket,
12}:
13
14mkDerivation {
15 pname = "kdegraphics-thumbnailers";
16 meta = {
17 license = [ lib.licenses.lgpl21 ];
18 maintainers = [ lib.maintainers.ttuegel ];
19 };
20 nativeBuildInputs = [ extra-cmake-modules ];
21 buildInputs = [
22 karchive
23 kio
24 libkexiv2
25 libkdcraw
26 kdegraphics-mobipocket
27 ];
28
29 patches = [
30 # Hardcode patches to Ghostscript so PDF thumbnails work OOTB.
31 # Intentionally not doing the same for dvips because TeX is big.
32 (replaceVars ./gs-paths.patch {
33 gs = "${ghostscript}/bin/gs";
34 })
35 ];
36}