nixpkgs/pkgs/tools/graphics/vips/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, pkgconfig, glib, libxml2, expat,
fftw, orc, lcms, imagemagick, openexr, libtiff, libjpeg, libgsf, libexif,
2018-08-21 09:53:12 +02:00
ApplicationServices,
python27, libpng ? null,
fetchFromGitHub,
autoreconfHook,
gtk-doc,
gobject-introspection,
}:
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";
src = fetchFromGitHub {
owner = "libvips";
repo = "libvips";
rev = "v${version}";
2019-04-07 04:59:43 +02:00
sha256 = "0mcax1qg5i4iqlvgkz3s0c938d7ymx24pv3q2n3w2pjylnnd489s";
};
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;
autoreconfPhase = ''
./autogen.sh
'';
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;
};
}