diffoscope: fix hdf5 tools on Darwin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user