diff options
author | toonn <toonn@toonn.io> | 2022-03-09 17:33:08 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-03-21 15:41:06 +0100 |
commit | 5c4f57cc5720ca7c4a500d6dc672208fe191564a (patch) | |
tree | c23bcb30a93e72d29eeb88b046d93ee0cfdbca25 /pkgs/applications/misc/mupdf | |
parent | e7d335fa8b0c4ba46104b0d885bc276365495af1 (diff) |
mupdf: Add Darwin application
Diffstat (limited to 'pkgs/applications/misc/mupdf')
-rw-r--r-- | pkgs/applications/misc/mupdf/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index 6471ab49fe0ac..7a272e9d491f2 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -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 ] |