depot/third_party/nixpkgs/pkgs/kde/gear/kdegraphics-thumbnailers/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

17 lines
364 B
Nix

{
mkKdeDerivation,
substituteAll,
ghostscript,
}:
mkKdeDerivation {
pname = "kdegraphics-thumbnailers";
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;
})
];
}