mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
Merge pull request #186467 from risicle/ris-libjpeg-passthru-tests
This commit is contained in:
commit
2eff05b225
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user