1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/applications/graphics/djview/default.nix
2017-04-08 23:28:00 -05:00

31 lines
778 B
Nix

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