diff options
author | Ryan Burns <rtburns-jpl@users.noreply.github.com> | 2020-12-28 14:02:48 -0800 |
---|---|---|
committer | Ryan Burns <rtburns-jpl@users.noreply.github.com> | 2020-12-28 14:16:14 -0800 |
commit | 81f07a616237bef8619c64fb3cf998ca85503799 (patch) | |
tree | 2f3d6bd472fb728d8173d2fd0b9090d21c308f0d /pkgs/tools/misc/hdf4/default.nix | |
parent | d0ecbe67b86731e0efd5c8de3c42d0b24ef28c32 (diff) |
hdf4: fix invalid rpath on darwin
CMake changes in hdf4 v4.15.2 broke the library path on macOS, linking using an invalid rpath rather than an absolute path. Before this commit: ``` otool -L result/lib/libhdf.dylib result/lib/libhdf.dylib: @rpath/libhdf.4.dylib (compatibility version 4.0.0, current version 4.15.2) ``` After: ``` otool -L result/lib/libhdf.dylib result/lib/libhdf.dylib: /nix/store/bz52b2gwci0k8rwd0llsi555s1hx166j-hdf-4.2.15/lib/libhdf.4.15.2.dylib (compatibility version 4.0.0, current version 4.15.2) ```
Diffstat (limited to 'pkgs/tools/misc/hdf4/default.nix')
-rw-r--r-- | pkgs/tools/misc/hdf4/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/misc/hdf4/default.nix b/pkgs/tools/misc/hdf4/default.nix index 5e5154111dc98..b15eba8b7bc3d 100644 --- a/pkgs/tools/misc/hdf4/default.nix +++ b/pkgs/tools/misc/hdf4/default.nix @@ -1,6 +1,7 @@ { stdenv , fetchpatch , fetchurl +, fixDarwinDylibNames , cmake , libjpeg , zlib @@ -17,6 +18,8 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake + ] ++ stdenv.lib.optionals stdenv.isDarwin [ + fixDarwinDylibNames ]; buildInputs = [ |