3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/graphics/vips/default.nix

91 lines
1.5 KiB
Nix
Raw Normal View History

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