2018-10-08 01:09:51 +02:00
|
|
|
{ stdenv, pkgconfig, glib, libxml2, expat,
|
2015-01-14 00:49:58 +01:00
|
|
|
fftw, orc, lcms, imagemagick, openexr, libtiff, libjpeg, libgsf, libexif,
|
2018-08-21 09:53:12 +02:00
|
|
|
ApplicationServices,
|
2018-10-08 01:09:51 +02:00
|
|
|
python27, libpng ? null,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
|
|
|
gtk-doc,
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection,
|
2015-01-14 00:49:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-12 02:50:21 +01:00
|
|
|
name = "vips-${version}";
|
2019-04-07 04:59:43 +02:00
|
|
|
version = "8.7.4";
|
2015-01-14 00:49:58 +01:00
|
|
|
|
2018-10-08 01:09:51 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libvips";
|
|
|
|
repo = "libvips";
|
|
|
|
rev = "v${version}";
|
2019-04-07 04:59:43 +02:00
|
|
|
sha256 = "0mcax1qg5i4iqlvgkz3s0c938d7ymx24pv3q2n3w2pjylnnd489s";
|
2015-01-14 00:49:58 +01:00
|
|
|
};
|
|
|
|
|
2018-12-02 12:41:15 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook gtk-doc gobject-introspection ];
|
2018-08-21 09:53:12 +02:00
|
|
|
buildInputs = [ glib libxml2 fftw orc lcms
|
|
|
|
imagemagick openexr libtiff libjpeg
|
|
|
|
libgsf libexif python27 libpng expat ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin ApplicationServices;
|
2015-01-14 00:49:58 +01:00
|
|
|
|
2018-10-08 01:09:51 +02:00
|
|
|
autoreconfPhase = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2015-01-14 00:49:58 +01:00
|
|
|
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 ];
|
2018-08-21 09:53:12 +02:00
|
|
|
platforms = platforms.unix;
|
2015-01-14 00:49:58 +01:00
|
|
|
};
|
|
|
|
}
|