haskellPackages.jpeg-turbo: fix dep discovery and tests

This commit is contained in:
sternenseemann
2025-06-24 19:19:44 +02:00
parent e207f3c228
commit 1c57a2a24c
2 changed files with 8 additions and 0 deletions
@@ -404,6 +404,9 @@ with haskellLib;
# https://github.com/essandess/adblock2privoxy/pull/43
adblock2privoxy = doJailbreak super.adblock2privoxy;
# Missing test file https://gitlab.com/dpwiz/hs-jpeg-turbo/-/issues/1
jpeg-turbo = dontCheck super.jpeg-turbo;
# Fixes compilation for basement on i686 for GHC >= 9.4
# https://github.com/haskell-foundation/foundation/pull/573
# Patch would not work for GHC >= 9.2 where it breaks compilation on x86_64
@@ -599,6 +599,11 @@ builtins.intersectAttrs super {
];
}) super.fltkhs;
# Select dependency discovery method and provide said dependency
jpeg-turbo = enableCabalFlag "pkgconfig" (
addPkgconfigDepends [ pkgs.libjpeg_turbo ] super.jpeg-turbo
);
# https://github.com/skogsbaer/hscurses/pull/26
hscurses = addExtraLibrary pkgs.ncurses super.hscurses;