Added `versionCheckHook`
Added `patches` to include missing header file `pthread.h`. Without it
the build will fail with:
> widgets/font_browser.cxx: In function 'void find_fonts()':
> widgets/font_browser.cxx:391:13: error: 'pthread_create' was not de
> 391 | if (pthread_create(&find_font_thread, NULL, find_fi
> | ^~~~~~~~~~~~~~
> | pthread_t
> make[2]: *** [Makefile:3513: widgets/flmsg-font_browser.o] Error 1
florist has been pinned to gnat 13 since its init in november 2024, but
it builds fine with modern gnat and nothing seems to indicate that this
pin is necessary, so we remove it.
I do not have the time or energy to handle all of this. Let alone my
GitHub notifications. This PR is in good faith and does not refer to
anything community-related. I will keep on doing nixpkgs work but the
pile of shame (let's call it that) needs to be cleaned. Thanks to
@mweinelt which whom I had a discussion and who made me aware of this
issue.
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