diffoscope: fix hdf5 tools on Darwin (#530669)

This commit is contained in:
Michael Daniels
2026-06-19 16:02:46 +00:00
committed by GitHub
+14
View File
@@ -273,6 +273,20 @@ python.pkgs.buildPythonApplication rec {
"-vv"
];
preCheck = lib.optionalString (enableBloat && stdenv.hostPlatform.isDarwin) ''
# h5dump is in hdf5's bin output, but its dylibs are in the out output.
export DYLD_LIBRARY_PATH="${lib.makeLibraryPath [ hdf5 ]}''${DYLD_LIBRARY_PATH:+:''${DYLD_LIBRARY_PATH}}"
'';
makeWrapperArgs = lib.optionals enableBloat (
[
"--prefix PATH : ${lib.makeBinPath [ hdf5 ]}"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"--prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath [ hdf5 ]}"
]
);
postInstall = ''
make -C doc
installManPage doc/diffoscope.1