ftgl: drop an impure -dylib_file on darwin

The build may outright fail because of this on recent macOS:

ftgl> clang-11: error: no such file or directory: '/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
main
Dmitry Kalinkin 2 years ago
parent 2912f1cced
commit 795fbbf5cc
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
  1. 8
      pkgs/development/libraries/ftgl/default.nix

@ -23,6 +23,14 @@ stdenv.mkDerivation rec {
hash = "sha256-6TDNGoMeBLnucmHRgEDIVWcjlJb7N0sTluqBwRMMWn4=";
};
# GL_DYLIB is hardcoded to an impure path
# /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
# and breaks build on recent macOS versions
postPatch = ''
substituteInPlace m4/gl.m4 \
--replace ' -dylib_file $GL_DYLIB: $GL_DYLIB' ""
'';
nativeBuildInputs = [
autoreconfHook
doxygen

Loading…
Cancel
Save