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}";
|
2018-09-20 11:21:40 +02:00
|
|
|
version = "8.7.0";
|
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}";
|
|
|
|
sha256 = "1dwcpmpqbgb9lkajnqv50mrsn97mxbxpq6b5aya7fgfkgdnrs9sw";
|
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
|
|
|
};
|
|
|
|
}
|