mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 07:23:40 +00:00
ce77225e21
This is the thing you want to look at.
18 lines
364 B
Nix
18 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;
|
|
})
|
|
];
|
|
}
|