summary refs log tree commit diff
path: root/pkgs/applications/graphics/djview/default.nix
blob: 2b0dde210c580f3eb2bbc3515203e2872cb3eea2 (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
30
{ stdenv, fetchurl, pkgconfig
, djvulibre, qt4, xorg, libtiff
, darwin }:

stdenv.mkDerivation rec {
  name = "djview-${version}";
  version = "4.10.6";

  src = fetchurl {
    url = "mirror://sourceforge/djvu/${name}.tar.gz";
    sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
  };

  nativeBuildInputs = [ pkgconfig ];

  buildInputs = [ djvulibre qt4 xorg.libXt libtiff ]
  ++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AGL ];

  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;
    platforms = platforms.unix;
    maintainers = [ ];
  };
}