summary refs log tree commit diff
path: root/pkgs/applications/graphics/djview/default.nix
blob: 2276b868b59adc1888ad77fe9e451ab9df1ecb42 (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
24
25
26
27
28
29
{ stdenv, fetchurl, pkgconfig, djvulibre, qt4, xorg, libtiff }:

let
  qt = qt4;
  # TODO: qt = qt5.base; # should work but there's a mysterious "-silent" error
in
stdenv.mkDerivation rec {
  name = "djview-4.10.5";
  src = fetchurl {
    url = "mirror://sourceforge/djvu/${name}.tar.gz";
    sha256 = "0gbvbly7w3cr8wgpyh76nf9w7cf7740vp7k5hccks186f6005cx0";
  };

  nativeBuildInputs = [ pkgconfig ];

  buildInputs = [ djvulibre qt xorg.libXt libtiff ];

  passthru = {
    mozillaPlugin = "/lib/netscape/plugins";
  };

  meta = with stdenv.lib; {
    homepage = http://djvu.sourceforge.net/djview4.html;
    description = "A portable DjVu viewer and browser plugin";
    license = licenses.gpl2;
    inherit (qt.meta) platforms;
    maintainers = [ maintainers.urkud ];
  };
}