vips: Add darwin support

This commit is contained in:
adisbladis 2018-08-21 15:53:12 +08:00
parent 4826f9b828
commit 5d4e3cc2f5
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5
2 changed files with 10 additions and 8 deletions

View File

@ -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;
};
}

View File

@ -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 { };