1{
2 mkKdeDerivation,
3 replaceVars,
4 ghostscript,
5}:
6mkKdeDerivation {
7 pname = "kdegraphics-thumbnailers";
8
9 patches = [
10 # Hardcode patches to Ghostscript so PDF thumbnails work OOTB.
11 # Intentionally not doing the same for dvips because TeX is big.
12 (replaceVars ./gs-paths.patch {
13 gs = "${ghostscript}/bin/gs";
14 })
15 ];
16}