diff options
author | Anthony Roussel <anthony@roussel.dev> | 2023-11-09 21:23:34 +0100 |
---|---|---|
committer | Anthony Roussel <anthony@roussel.dev> | 2023-11-12 13:34:23 +0100 |
commit | 0f160365c0da6f7ff4765d33077a09ce2dd368cc (patch) | |
tree | 43cab0d00cb96815d711ec83c74d105041f6bf10 /pkgs/tools/graphics | |
parent | 315aeb02623bceedcf5ec2f04693375bf3872f1b (diff) |
vips: add passthru.tests.pkg-config
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/vips/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/tools/graphics/vips/default.nix b/pkgs/tools/graphics/vips/default.nix index 5a6b40dc731f6..b9c95da9ca80b 100644 --- a/pkgs/tools/graphics/vips/default.nix +++ b/pkgs/tools/graphics/vips/default.nix @@ -36,9 +36,10 @@ , openslide , libheif , cgif +, testers }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "vips"; version = "8.14.5"; @@ -47,7 +48,7 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "libvips"; repo = "libvips"; - rev = "v${version}"; + rev = "refs/tags/v${finalAttrs.version}"; hash = "sha256-fG3DTP+3pO7sbqR/H9egJHU3cLKPU4Jad6qxcQ9evNw="; # Remove unicode file names which leads to different checksums on HFS+ # vs. other filesystems because of unicode normalisation. @@ -109,14 +110,18 @@ stdenv.mkDerivation rec { ++ lib.optional (imagemagick == null) "-Dmagick=disabled" ; + passthru.tests.pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + }; + meta = with lib; { - changelog = "https://github.com/libvips/libvips/blob/${src.rev}/ChangeLog"; + changelog = "https://github.com/libvips/libvips/blob/${finalAttrs.src.rev}/ChangeLog"; homepage = "https://libvips.github.io/libvips/"; description = "Image processing system for large images"; license = licenses.lgpl2Plus; maintainers = with maintainers; [ kovirobi ]; - pkgConfigModules = [ "vips" ]; + pkgConfigModules = [ "vips" "vips-cpp" ]; platforms = platforms.unix; mainProgram = "vips"; }; -} +}) |