depot/third_party/nixpkgs/pkgs/applications/kde/kdegraphics-thumbnailers/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

23 lines
669 B
Nix

{
mkDerivation, lib, ghostscript, substituteAll,
extra-cmake-modules, karchive, kio, libkexiv2, libkdcraw, kdegraphics-mobipocket
}:
mkDerivation {
pname = "kdegraphics-thumbnailers";
meta = {
license = [ lib.licenses.lgpl21 ];
maintainers = [ lib.maintainers.ttuegel ];
};
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ karchive kio libkexiv2 libkdcraw kdegraphics-mobipocket ];
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;
})
];
}