diff options
Diffstat (limited to 'pkgs/applications/graphics/djview/default.nix')
-rw-r--r-- | pkgs/applications/graphics/djview/default.nix | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/pkgs/applications/graphics/djview/default.nix b/pkgs/applications/graphics/djview/default.nix index 4ded807cb29..e5c49846b23 100644 --- a/pkgs/applications/graphics/djview/default.nix +++ b/pkgs/applications/graphics/djview/default.nix @@ -1,27 +1,29 @@ -{stdenv, fetchurl, djvulibre, qt4, pkgconfig }: +{ 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.8"; - src = fetchurl { - url = "mirror://sourceforge/djvu/${name}.tar.gz"; - sha256 = "17y8jvbvj98h25qwsr93v24x75famv8d0jbb0h46xjj555y6wx4c"; - }; - - buildInputs = [djvulibre qt4]; + name = "djview-4.10.3"; + src = fetchurl { + url = "mirror://sourceforge/djvu/${name}.tar.gz"; + sha256 = "09dbws0k8giizc0xqpad8plbyaply8x1pjc2k3207v2svk6hxf2h"; + }; nativeBuildInputs = [ pkgconfig ]; - patches = [ ./djview4-qt-4.8.patch ]; + buildInputs = [ djvulibre qt xorg.libXt libtiff ]; passthru = { mozillaPlugin = "/lib/netscape/plugins"; }; - meta = { - homepage = http://djvu.sourceforge.net/djview4.html; - description = "A new portable DjVu viewer and browser plugin"; - license = stdenv.lib.licenses.gpl2; - inherit (qt4.meta) platforms; - maintainers = [ stdenv.lib.maintainers.urkud ]; - }; + 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 ]; + }; } |