diff --git a/pkgs/development/libraries/ftgl/default.nix b/pkgs/development/libraries/ftgl/default.nix index 466ffcbb73a0..46d6180eb1dc 100644 --- a/pkgs/development/libraries/ftgl/default.nix +++ b/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