nixpkgs-suyu/pkgs/tools/graphics/vips/default.nix
2018-08-21 15:53:12 +08:00

29 lines
936 B
Nix

{ stdenv, fetchurl, pkgconfig, glib, libxml2, expat,
fftw, orc, lcms, imagemagick, openexr, libtiff, libjpeg, libgsf, libexif,
ApplicationServices,
python27, libpng ? null
}:
stdenv.mkDerivation rec {
name = "vips-${version}";
version = "8.6.5";
src = fetchurl {
url = "https://github.com/jcupitt/libvips/releases/download/v${version}/${name}.tar.gz";
sha256 = "1nymm4vzscb68aifin9q742ff64b4k4ddppq1060w8hf6h7ay0l7";
};
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.unix;
};
}