mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 21:17:46 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
90 lines
1.5 KiB
Nix
90 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, pkgconfig
|
|
, glib
|
|
, libxml2
|
|
, expat
|
|
, fftw
|
|
, orc
|
|
, lcms
|
|
, imagemagick
|
|
, openexr
|
|
, libtiff
|
|
, libjpeg
|
|
, libgsf
|
|
, libexif
|
|
, libheif
|
|
, librsvg
|
|
, ApplicationServices
|
|
, python27
|
|
, libpng
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, autoreconfHook
|
|
, gtk-doc
|
|
, gobject-introspection
|
|
,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vips";
|
|
version = "8.10.2";
|
|
|
|
outputs = [ "bin" "out" "man" "dev" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libvips";
|
|
repo = "libvips";
|
|
rev = "v${version}";
|
|
sha256 = "1psi39a4h0awwbyizbsk467z0djwq0rh8hvkklbsd5b92m7768sp";
|
|
# 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/
|
|
'';
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig
|
|
autoreconfHook
|
|
gtk-doc
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
libxml2
|
|
fftw
|
|
orc
|
|
lcms
|
|
imagemagick
|
|
openexr
|
|
libtiff
|
|
libjpeg
|
|
libgsf
|
|
libexif
|
|
libheif
|
|
libpng
|
|
librsvg
|
|
python27
|
|
libpng
|
|
expat
|
|
] ++ stdenv.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;
|
|
};
|
|
}
|