diff --git a/pkgs/tools/graphics/vips/default.nix b/pkgs/tools/graphics/vips/default.nix index 4a5a19fefcab..e2688e930cf6 100644 --- a/pkgs/tools/graphics/vips/default.nix +++ b/pkgs/tools/graphics/vips/default.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, pkgconfig, glib, libxml2, expat, fftw, orc, lcms, imagemagick, openexr, libtiff, libjpeg, libgsf, libexif, + ApplicationServices, python27, libpng ? null }: @@ -12,18 +13,17 @@ stdenv.mkDerivation rec { sha256 = "1nymm4vzscb68aifin9q742ff64b4k4ddppq1060w8hf6h7ay0l7"; }; - buildInputs = - [ pkgconfig glib libxml2 fftw orc lcms - imagemagick openexr libtiff libjpeg - libgsf libexif python27 libpng - expat - ]; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ glib libxml2 fftw orc lcms + imagemagick openexr libtiff libjpeg + libgsf libexif python27 libpng expat ] + ++ stdenv.lib.optional stdenv.isDarwin ApplicationServices; meta = with stdenv.lib; { homepage = http://www.vips.ecs.soton.ac.uk; description = "Image processing system for large images"; license = licenses.lgpl2Plus; maintainers = with maintainers; [ kovirobi ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a7491632fb5b..13912f76a992 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21893,7 +21893,9 @@ with pkgs; vimb-unwrapped = callPackage ../applications/networking/browsers/vimb { }; vimb = wrapFirefox vimb-unwrapped { }; - vips = callPackage ../tools/graphics/vips { }; + vips = callPackage ../tools/graphics/vips { + inherit (darwin.apple_sdk.frameworks) ApplicationServices; + }; nip2 = callPackage ../tools/graphics/nip2 { }; virglrenderer = callPackage ../development/libraries/virglrenderer { };