nixpkgs/pkgs/applications/graphics/djview/default.nix

31 lines
778 B
Nix
Raw Normal View History

2017-03-19 13:40:15 +00:00
{ stdenv, fetchurl, pkgconfig
2017-04-08 03:32:58 +00:00
, djvulibre, qt4, xorg, libtiff
, darwin }:
stdenv.mkDerivation rec {
2017-03-19 13:40:15 +00:00
name = "djview-${version}";
version = "4.10.6";
src = fetchurl {
url = "mirror://sourceforge/djvu/${name}.tar.gz";
2017-03-19 13:40:15 +00:00
sha256 = "08bwv8ppdzhryfcnifgzgdilb12jcnivl4ig6hd44f12d76z6il4";
};
nativeBuildInputs = [ pkgconfig ];
2017-04-08 03:32:58 +00:00
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;
2017-03-19 13:40:15 +00:00
platforms = platforms.unix;
maintainers = [ ];
};
}