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