From b92ac5ce2ab6bc5d6ea2504dce2f999f093ae80d Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 13 Aug 2022 18:12:55 +0100 Subject: [PATCH] libjpeg_turbo: add some key reverse-dependencies to passthru.tests --- .../libraries/libjpeg-turbo/default.nix | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pkgs/development/libraries/libjpeg-turbo/default.nix b/pkgs/development/libraries/libjpeg-turbo/default.nix index 75ec20545cae..c9a5197a6b96 100644 --- a/pkgs/development/libraries/libjpeg-turbo/default.nix +++ b/pkgs/development/libraries/libjpeg-turbo/default.nix @@ -9,6 +9,21 @@ , enableJpeg8 ? false # whether to build libjpeg with v8 compatibility , enableStatic ? stdenv.hostPlatform.isStatic , enableShared ? !stdenv.hostPlatform.isStatic + +# for passthru.tests +, dvgrab +, epeg +, freeimage +, gd +, graphicsmagick +, imagemagick +, imlib2 +, jhead +, libjxl +, mjpegtools +, opencv +, python3 +, vips }: assert !(enableJpeg7 && enableJpeg8); # pick only one or none, not both @@ -61,6 +76,23 @@ stdenv.mkDerivation rec { doInstallCheck = true; installCheckTarget = "test"; + passthru.tests = { + inherit + dvgrab + epeg + freeimage + gd + graphicsmagick + imagemagick + imlib2 + jhead + libjxl + mjpegtools + opencv + vips; + inherit (python3.pkgs) pillow imread pyturbojpeg; + }; + meta = with lib; { homepage = "https://libjpeg-turbo.org/"; description = "A faster (using SIMD) libjpeg implementation";