mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[Backport release-26.05] diffoscope: fix hdf5 tools on Darwin (#533719)
This commit is contained in:
commit
d06796c416
1 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue