mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
f2c59d3401
Fixes #153983.
24 lines
669 B
Nix
24 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;
|
|
})
|
|
];
|
|
}
|