There are several GPUs that ROCm doesn't officially support but
will work correctly if ROCm is directed to treat the GPU as a different
one that is supported and has a similar architecture.
This can be done by setting `HSA_OVERRIDE_GFX_VERSION`.
Ollama has documentation on this topic: https://github.com/ollama/ollama/blob/main/docs/gpu.md#amd-radeon
On Darwin, libGL is the same as libGLU now, and the build system
doesn’t like having the same path passed twice for whatever
reason. Since libGLU always propagates libGL, just specify the former.
The upstream code can already successfully find the system framework
on macOS, and fontconfig isn’t used at all.
Co-authored-by: Randy Eckenrode <randy@largeandhighquality.com>
This requires hacks to build against Apple’s OpenGL framework, and
there’s no point; macOS ships with a GLU implementation already, so
this package should only be used for X11 applications that explicitly
require Mesa’s libGLX and want `<GL/glu.h>`.
Allow the macOS GLUT framework to be used automatically in many
cases. Packages that specifically search for freeglut or require its
additional APIs should still explicitly depend on it.
Deliberately skip the Haskell package set, which is mostly
automatically generated, and mupdf, which has its own fork of freeglut.
This reduces the reverse closure of Mesa on Darwin considerably. As
a result, we can also drop the Mesa stubs package entirely, as its
output on Linux is functionally identical to libglvnd.
It should no longer be necessary for packages to switch between libGL
and darwin.apple_sdk.frameworks.OpenGL depending on the platform.
A cross‐platform libGLX alias is added for packages that specifically
need it (mostly old X11 applications that barely know what a macOS is).
Co-authored-by: K900 <me@0upti.me>
We're using the upstream systemd service file since dfa130e.
It specifies `PermissionsStartOnly = true`, which is not only
deprecated in recent systemd, but also interferes with the
`ExecPreStart` in our module.
This adds a patch to the package solving this, allowing our module and
NixOS test to work until this gets merged upstream.
Upstream PR: https://github.com/stalwartlabs/mail-server/pull/528