mupdf: Add Darwin application

This commit is contained in:
toonn 2022-03-09 17:33:08 +01:00
parent e7d335fa8b
commit 5c4f57cc57
No known key found for this signature in database
GPG key ID: 44FF902A66DF4576

View file

@ -2,6 +2,7 @@
, lib
, fetchurl
, fetchpatch
, desktopToDarwinBundle
, pkg-config
, freetype
, harfbuzz
@ -50,7 +51,9 @@ stdenv.mkDerivation rec {
++ lib.optionals (!enableX11) [ "HAVE_X11=no" ]
++ lib.optionals (!enableGL) [ "HAVE_GLUT=no" ];
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs =
[ pkg-config ] ++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
buildInputs = [ freetype harfbuzz openjpeg jbig2dec libjpeg gumbo ]
++ lib.optionals enableX11 [ libX11 libXext libXi libXrandr ]
++ lib.optionals enableCurl [ curl openssl ]