djview: fix macOS build

This commit is contained in:
Matthew Bauer 2017-04-07 22:32:58 -05:00
parent f48cd9503d
commit c344f46321
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3

View File

@ -1,5 +1,6 @@
{ stdenv, fetchurl, pkgconfig
, djvulibre, qt4, xorg, libtiff }:
, djvulibre, qt4, xorg, libtiff
, darwin }:
stdenv.mkDerivation rec {
name = "djview-${version}";
@ -12,7 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ djvulibre qt4 xorg.libXt libtiff ];
buildInputs = [ djvulibre qt4 xorg.libXt libtiff ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AGL ];
passthru = {
mozillaPlugin = "/lib/netscape/plugins";