My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/tools/graphics/vips/default.nix

90 lines
1.5 KiB

{ lib, stdenv
, pkg-config
4 years ago
, glib
, libxml2
, expat
, fftw
, orc
, lcms
, imagemagick
, openexr
, libtiff
, libjpeg
, libgsf
, libexif
4 years ago
, libheif
, librsvg
4 years ago
, ApplicationServices
, python27
4 years ago
, libpng
4 years ago
, fetchFromGitHub
, fetchpatch
4 years ago
, autoreconfHook
, gtk-doc
, gobject-introspection
,
}:
stdenv.mkDerivation rec {
pname = "vips";
version = "8.10.6";
outputs = [ "bin" "out" "man" "dev" ];
src = fetchFromGitHub {
owner = "libvips";
repo = "libvips";
rev = "v${version}";
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/
'';
};
4 years ago
nativeBuildInputs = [
pkg-config
4 years ago
autoreconfHook
gtk-doc
gobject-introspection
];
buildInputs = [
glib
libxml2
fftw
orc
lcms
imagemagick
openexr
libtiff
libjpeg
libgsf
libexif
4 years ago
libheif
libpng
librsvg
4 years ago
python27
libpng
expat
] ++ lib.optional stdenv.isDarwin ApplicationServices;
# Required by .pc file
propagatedBuildInputs = [
glib
];
autoreconfPhase = ''
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 ];
platforms = platforms.unix;
};
}