mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
Upstream hard-codes the CMake package config install path to `FLTK.framework/Resources/CMake` on Apple (CMake/setup.cmake), but we build FLTK as plain shared dylibs, so no framework target is ever created. That path then becomes an empty `FLTK.framework/` directory holding only the CMake config files -- no Mach-O binary, no `Headers/`. Downstream `find_package(FLTK)` (module mode) resolves the main FLTK library to that bare directory, and the linker fails with `file cannot be mmap()ed, errno=22`, which surfaces in consumers such as tigervnc as a misleading "Incompatible version of FLTK". Install the package config to the standard `lib/cmake/FLTK` location instead, which also lets config-mode `find_package(FLTK)` work, and drop the now-unnecessary move of the (no longer created) framework stub. Assisted-by: Claude-Code:GLM-5.2 f