2018-10-08 00:09:51 +01:00
|
|
|
{ stdenv, pkgconfig, glib, libxml2, expat,
|
2015-01-13 23:49:58 +00:00
|
|
|
fftw, orc, lcms, imagemagick, openexr, libtiff, libjpeg, libgsf, libexif,
|
2018-08-21 08:53:12 +01:00
|
|
|
ApplicationServices,
|
2018-10-08 00:09:51 +01:00
|
|
|
python27, libpng ? null,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
|
|
|
gtk-doc,
|
2018-12-02 11:41:15 +00:00
|
|
|
gobject-introspection,
|
2015-01-13 23:49:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-12 01:50:21 +00:00
|
|
|
name = "vips-${version}";
|
2019-07-17 04:19:34 +01:00
|
|
|
version = "8.8.1";
|
2015-01-13 23:49:58 +00:00
|
|
|
|
2018-10-08 00:09:51 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libvips";
|
|
|
|
repo = "libvips";
|
|
|
|
rev = "v${version}";
|
2019-07-17 04:19:34 +01:00
|
|
|
sha256 = "1wnfn92rvafx1g9vvhbvxssifzydx9y95kszg6i4c1p5sv5nhfd2";
|
2019-06-03 09:49:48 +01:00
|
|
|
# Remove unicode file names which leads to different checksums on HFS+
|
|
|
|
# vs. other filesystems because of unicode normalisation.
|
|
|
|
extraPostFetch = ''
|
|
|
|
rm -r $out/test/test-suite/images/
|
|
|
|
'';
|
2015-01-13 23:49:58 +00:00
|
|
|
};
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook gtk-doc gobject-introspection ];
|
2018-08-21 08:53:12 +01:00
|
|
|
buildInputs = [ glib libxml2 fftw orc lcms
|
|
|
|
imagemagick openexr libtiff libjpeg
|
|
|
|
libgsf libexif python27 libpng expat ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin ApplicationServices;
|
2015-01-13 23:49:58 +00:00
|
|
|
|
2018-10-08 00:09:51 +01:00
|
|
|
autoreconfPhase = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2015-01-13 23:49:58 +00:00
|
|
|
meta = with stdenv.lib; {
|
2019-06-03 09:49:48 +01:00
|
|
|
homepage = "https://libvips.github.io/libvips/";
|
2015-01-13 23:49:58 +00:00
|
|
|
description = "Image processing system for large images";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = with maintainers; [ kovirobi ];
|
2018-08-21 08:53:12 +01:00
|
|
|
platforms = platforms.unix;
|
2015-01-13 23:49:58 +00:00
|
|
|
};
|
|
|
|
}
|