2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2021-01-17 10:17:16 +01:00
|
|
|
, pkg-config
|
2020-03-04 01:23:43 +01:00
|
|
|
, glib
|
|
|
|
, libxml2
|
|
|
|
, expat
|
|
|
|
, fftw
|
|
|
|
, orc
|
|
|
|
, lcms
|
|
|
|
, imagemagick
|
|
|
|
, openexr
|
|
|
|
, libtiff
|
|
|
|
, libjpeg
|
|
|
|
, libgsf
|
|
|
|
, libexif
|
2020-05-10 20:31:14 +02:00
|
|
|
, libheif
|
2020-11-25 04:42:24 +01:00
|
|
|
, librsvg
|
2020-03-04 01:23:43 +01:00
|
|
|
, ApplicationServices
|
|
|
|
, python27
|
2020-05-10 20:31:14 +02:00
|
|
|
, libpng
|
2020-03-04 01:23:43 +01:00
|
|
|
, fetchFromGitHub
|
2020-03-04 01:27:23 +01:00
|
|
|
, fetchpatch
|
2020-03-04 01:23:43 +01:00
|
|
|
, autoreconfHook
|
|
|
|
, gtk-doc
|
|
|
|
, gobject-introspection
|
|
|
|
,
|
2015-01-14 00:49:58 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "vips";
|
2021-03-28 00:09:55 +01:00
|
|
|
version = "8.10.6";
|
2015-01-14 00:49:58 +01:00
|
|
|
|
2020-03-04 01:32:41 +01:00
|
|
|
outputs = [ "bin" "out" "man" "dev" ];
|
|
|
|
|
2018-10-08 01:09:51 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libvips";
|
|
|
|
repo = "libvips";
|
|
|
|
rev = "v${version}";
|
2021-03-28 00:09:55 +01:00
|
|
|
sha256 = "sha256-hdpkBC76PnPTN+rnNchLVk1CrhcClTtbaWyUcyUtuAk=";
|
2019-06-03 10:49:48 +02: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-14 00:49:58 +01:00
|
|
|
};
|
|
|
|
|
2020-03-04 01:23:43 +01:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 10:17:16 +01:00
|
|
|
pkg-config
|
2020-03-04 01:23:43 +01:00
|
|
|
autoreconfHook
|
|
|
|
gtk-doc
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libxml2
|
|
|
|
fftw
|
|
|
|
orc
|
|
|
|
lcms
|
|
|
|
imagemagick
|
|
|
|
openexr
|
|
|
|
libtiff
|
|
|
|
libjpeg
|
|
|
|
libgsf
|
|
|
|
libexif
|
2020-05-10 20:31:14 +02:00
|
|
|
libheif
|
|
|
|
libpng
|
2020-11-25 04:42:24 +01:00
|
|
|
librsvg
|
2020-03-04 01:23:43 +01:00
|
|
|
python27
|
|
|
|
libpng
|
|
|
|
expat
|
2021-01-15 10:19:50 +01:00
|
|
|
] ++ lib.optional stdenv.isDarwin ApplicationServices;
|
2015-01-14 00:49:58 +01:00
|
|
|
|
2020-03-04 01:28:09 +01:00
|
|
|
# Required by .pc file
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
2018-10-08 01:09:51 +02:00
|
|
|
autoreconfPhase = ''
|
2020-03-04 01:27:23 +01:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2018-10-08 01:09:51 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-06-03 10:49:48 +02:00
|
|
|
homepage = "https://libvips.github.io/libvips/";
|
2015-01-14 00:49:58 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|