mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #266865 from anthonyroussel/bugfix/libvips
vips: 8.14.5 -> 8.15.0
This commit is contained in:
commit
cb64774bad
@ -1,5 +1,6 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, glib
|
||||
@ -13,6 +14,8 @@ buildPythonPackage rec {
|
||||
pname = "pyvips";
|
||||
version = "2.2.1";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libvips";
|
||||
repo = "pyvips";
|
||||
@ -41,6 +44,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "A python wrapper for libvips";
|
||||
homepage = "https://github.com/libvips/pyvips";
|
||||
changelog = "https://github.com/libvips/pyvips/blob/v${version}/CHANGELOG.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ccellado anthonyroussel ];
|
||||
};
|
||||
|
@ -18,7 +18,6 @@
|
||||
, libexif
|
||||
, librsvg
|
||||
, poppler
|
||||
, libgsf
|
||||
, libtiff
|
||||
, fftw
|
||||
, lcms2
|
||||
@ -26,7 +25,6 @@
|
||||
, libimagequant
|
||||
, imagemagick
|
||||
, pango
|
||||
, orc
|
||||
, matio
|
||||
, cfitsio
|
||||
, libwebp
|
||||
@ -36,19 +34,23 @@
|
||||
, openslide
|
||||
, libheif
|
||||
, cgif
|
||||
, libarchive
|
||||
, libhwy
|
||||
, testers
|
||||
, nix-update-script
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "vips";
|
||||
version = "8.14.5";
|
||||
version = "8.15.0";
|
||||
|
||||
outputs = [ "bin" "out" "man" "dev" ] ++ lib.optionals (!stdenv.isDarwin) [ "devdoc" ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libvips";
|
||||
repo = "libvips";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-fG3DTP+3pO7sbqR/H9egJHU3cLKPU4Jad6qxcQ9evNw=";
|
||||
rev = "refs/tags/v${finalAttrs.version}";
|
||||
hash = "sha256-WfKq+maLcAXyjk1sq66wSU92ALv4MfRDPKe4Mki0KRQ=";
|
||||
# Remove unicode file names which leads to different checksums on HFS+
|
||||
# vs. other filesystems because of unicode normalisation.
|
||||
postFetch = ''
|
||||
@ -76,7 +78,6 @@ stdenv.mkDerivation rec {
|
||||
libexif
|
||||
librsvg
|
||||
poppler
|
||||
libgsf
|
||||
libtiff
|
||||
fftw
|
||||
lcms2
|
||||
@ -84,7 +85,6 @@ stdenv.mkDerivation rec {
|
||||
libimagequant
|
||||
imagemagick
|
||||
pango
|
||||
orc
|
||||
matio
|
||||
cfitsio
|
||||
libwebp
|
||||
@ -94,6 +94,8 @@ stdenv.mkDerivation rec {
|
||||
openslide
|
||||
libheif
|
||||
cgif
|
||||
libarchive
|
||||
libhwy
|
||||
] ++ lib.optionals stdenv.isDarwin [ ApplicationServices Foundation ];
|
||||
|
||||
# Required by .pc file
|
||||
@ -109,13 +111,29 @@ stdenv.mkDerivation rec {
|
||||
++ lib.optional (imagemagick == null) "-Dmagick=disabled"
|
||||
;
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
version = testers.testVersion {
|
||||
package = finalAttrs.finalPackage;
|
||||
command = "vips --version";
|
||||
};
|
||||
};
|
||||
updateScript = nix-update-script {
|
||||
extraArgs = [ "--version-regex" "v([0-9.]+)" ];
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/libvips/libvips/blob/${src.rev}/ChangeLog";
|
||||
homepage = "https://libvips.github.io/libvips/";
|
||||
changelog = "https://github.com/libvips/libvips/blob/${finalAttrs.src.rev}/ChangeLog";
|
||||
homepage = "https://www.libvips.org/";
|
||||
description = "Image processing system for large images";
|
||||
license = licenses.lgpl2Plus;
|
||||
maintainers = with maintainers; [ kovirobi ];
|
||||
maintainers = with maintainers; [ kovirobi anthonyroussel ];
|
||||
pkgConfigModules = [ "vips" "vips-cpp" ];
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "vips";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user