2020-04-24 23:36:52 +00:00
|
|
|
{
|
2023-10-09 19:29:22 +00:00
|
|
|
mkDerivation, lib, ghostscript, substituteAll,
|
2022-04-27 09:35:20 +00:00
|
|
|
extra-cmake-modules, karchive, kio, libkexiv2, libkdcraw, kdegraphics-mobipocket
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "kdegraphics-thumbnailers";
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
license = [ lib.licenses.lgpl21 ];
|
|
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
|
|
};
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2022-04-27 09:35:20 +00:00
|
|
|
buildInputs = [ karchive kio libkexiv2 libkdcraw kdegraphics-mobipocket ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Hardcode patches to Ghostscript so PDF thumbnails work OOTB.
|
|
|
|
# Intentionally not doing the same for dvips because TeX is big.
|
|
|
|
(substituteAll {
|
|
|
|
gs = "${ghostscript}/bin/gs";
|
|
|
|
src = ./gs-paths.patch;
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|