2016-07-30 02:13:00 +00:00
|
|
|
{
|
2023-09-24 17:26:33 +00:00
|
|
|
mkDerivation, lib, ghostscript, substituteAll,
|
2022-04-21 16:06:01 +00:00
|
|
|
extra-cmake-modules, karchive, kio, libkexiv2, libkdcraw, kdegraphics-mobipocket
|
2016-04-21 16:00:51 +00:00
|
|
|
}:
|
|
|
|
|
2017-06-02 15:49:52 +00:00
|
|
|
mkDerivation {
|
2020-12-24 23:05:07 +00:00
|
|
|
pname = "kdegraphics-thumbnailers";
|
2016-04-21 16:00:51 +00:00
|
|
|
meta = {
|
|
|
|
license = [ lib.licenses.lgpl21 ];
|
|
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
|
|
};
|
2017-02-26 12:49:15 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules ];
|
2022-04-21 16:06:01 +00:00
|
|
|
buildInputs = [ karchive kio libkexiv2 libkdcraw kdegraphics-mobipocket ];
|
2023-09-24 17:26:33 +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;
|
|
|
|
})
|
|
|
|
];
|
2016-04-21 16:00:51 +00:00
|
|
|
}
|