2017-03-19 14:40:15 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
2017-04-08 05:32:58 +02:00
|
|
|
, djvulibre, qt4, xorg, libtiff
|
|
|
|
, darwin }:
|
2007-11-11 17:52:29 +01:00
|
|
|
|
2012-02-10 11:13:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-19 14:40:15 +01:00
|
|
|
name = "djview-${version}";
|
|
|
|
version = "4.10.6";
|
|
|
|
|
2015-09-20 08:43:32 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/djvu/${name}.tar.gz";
|
2017-03-19 14:40:15 +01:00
|
|
|
sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
|
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
|
|
|
|
2017-04-08 05:32:58 +02:00
|
|
|
buildInputs = [ djvulibre qt4 xorg.libXt libtiff ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AGL ];
|
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;
|
2017-03-19 14:40:15 +01:00
|
|
|
platforms = platforms.unix;
|
2017-03-27 19:11:17 +02:00
|
|
|
maintainers = [ ];
|
2015-09-20 08:43:32 +02:00
|
|
|
};
|
2007-11-11 17:52:29 +01:00
|
|
|
}
|