imagemagick: add darwin frameworks

This commit is contained in:
Daiderd Jordan 2017-01-10 23:03:49 +01:00
parent 6bdecbf1ba
commit 581a5aec88
No known key found for this signature in database
GPG key ID: D02435D05B810C96
3 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,7 @@
{ lib, stdenv, fetchurl, fetchpatch, pkgconfig, libtool
, bzip2, zlib, libX11, libXext, libXt, fontconfig, freetype, ghostscript, libjpeg
, lcms2, openexr, libpng, librsvg, libtiff, libxml2, openjpeg, libwebp
, ApplicationServices
}:
let
@ -58,7 +59,7 @@ stdenv.mkDerivation rec {
]
++ lib.optionals (stdenv.cross.libc or null != "msvcrt")
[ openexr librsvg openjpeg ]
;
++ lib.optional stdenv.isDarwin ApplicationServices;
propagatedBuildInputs =
[ bzip2 freetype libjpeg lcms2 ]

View file

@ -1,6 +1,7 @@
{ lib, stdenv, fetchurl, fetchpatch, pkgconfig, libtool
, bzip2, zlib, libX11, libXext, libXt, fontconfig, freetype, ghostscript, libjpeg
, lcms2, openexr, libpng, librsvg, libtiff, libxml2, openjpeg, libwebp
, ApplicationServices
}:
let
@ -70,7 +71,7 @@ stdenv.mkDerivation rec {
]
++ lib.optionals (stdenv.cross.libc or null != "msvcrt")
[ openexr librsvg openjpeg ]
;
++ lib.optional stdenv.isDarwin ApplicationServices;
propagatedBuildInputs =
[ bzip2 freetype libjpeg lcms2 ]

View file

@ -13697,7 +13697,9 @@ in
ghostscript = null;
};
imagemagickBig = callPackage ../applications/graphics/ImageMagick { };
imagemagickBig = callPackage ../applications/graphics/ImageMagick {
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
};
imagemagick7_light = lowPrio (imagemagick7.override {
bzip2 = null;
@ -13723,7 +13725,9 @@ in
ghostscript = null;
});
imagemagick7Big = lowPrio (callPackage ../applications/graphics/ImageMagick/7.0.nix { });
imagemagick7Big = lowPrio (callPackage ../applications/graphics/ImageMagick/7.0.nix {
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
});
# Impressive, formerly known as "KeyJNote".
impressive = callPackage ../applications/office/impressive { };