2015-09-20 08:43:32 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, djvulibre, qt4, xorg, libtiff }:
|
2007-11-11 17:52:29 +01:00
|
|
|
|
2015-09-20 08:43:32 +02:00
|
|
|
let
|
|
|
|
qt = qt4;
|
|
|
|
# TODO: qt = qt5.base; # should work but there's a mysterious "-silent" error
|
|
|
|
in
|
2012-02-10 11:13:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-08 20:41:38 +01:00
|
|
|
name = "djview-4.10.5";
|
2015-09-20 08:43:32 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/djvu/${name}.tar.gz";
|
2016-01-08 20:41:38 +01:00
|
|
|
sha256 = "0gbvbly7w3cr8wgpyh76nf9w7cf7740vp7k5hccks186f6005cx0";
|
2015-09-20 08:43:32 +02:00
|
|
|
};
|
2007-11-11 17:52:29 +01:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-02-10 11:13:44 +01:00
|
|
|
|
2015-09-20 08:43:32 +02:00
|
|
|
buildInputs = [ djvulibre qt xorg.libXt libtiff ];
|
2012-02-10 11:13:44 +01:00
|
|
|
|
2011-03-10 22:39:09 +01:00
|
|
|
passthru = {
|
|
|
|
mozillaPlugin = "/lib/netscape/plugins";
|
|
|
|
};
|
|
|
|
|
2015-09-20 08:43:32 +02:00
|
|
|
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 ];
|
|
|
|
};
|
2007-11-11 17:52:29 +01:00
|
|
|
}
|