about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/kde/kdegraphics-thumbnailers/default.nix
blob: 6686f582d6d2b72d900914cd303d48b7e1c47013 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  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;
    })
  ];
}