This deals with some special cases, i.e. where "null" is used to avoid replacing some values or where the syntax is not too easy to grep for for automated replacement.
17 lines
347 B
Nix
17 lines
347 B
Nix
{
|
|
mkKdeDerivation,
|
|
replaceVars,
|
|
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.
|
|
(replaceVars ./gs-paths.patch {
|
|
gs = "${ghostscript}/bin/gs";
|
|
})
|
|
];
|
|
}
|