From 640837cdf5351f55beadd0c894a193ea24fbb971 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sun, 19 Jul 2026 18:52:02 +0800 Subject: [PATCH] vigra: fix hdf5 discovery The vigra package currently claims hdf5 not foun due to szip supporch check HDF5_SZLIB_OK not passing. Szip support has been added to the hdf5 package with commit 96e0d84b53f9 ("hdf5: enable szip with libaec"), and vigra's FindHDF5.cmake is aware of that by testing with H5pubconf.h. What fails the HDF5_SZLIB_OK check happens to be szip not presented, which is not quite sensible as vigra itself doesn't use szip. Before fixing from the upstream, let's present szip and please the check Here, libaec is a FOSS implementation of the unfree szip. --- pkgs/by-name/vi/vigra/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/vi/vigra/package.nix b/pkgs/by-name/vi/vigra/package.nix index c095fbf53c01..23d0a049a14e 100644 --- a/pkgs/by-name/vi/vigra/package.nix +++ b/pkgs/by-name/vi/vigra/package.nix @@ -7,6 +7,7 @@ fftw, fftwSinglePrec, hdf5, + libaec, libjpeg, libpng, libtiff, @@ -43,6 +44,9 @@ stdenv.mkDerivation (finalAttrs: { (hdf5.override { apiVersion = "v110"; }) + # Satisfy the HDF5_SZLIB_OK check in the source's config/FindHDF5.cmake + # libaec is a drop-in replacement of szip. + libaec libjpeg libpng libtiff