nix/hosts/Asahi/overlay.nix

14 lines
590 B
Nix

final: prev: {
# aquamarine 0.11.0 never pairs apple-drm (KMS) with asahi (renderD128)
# because they sit under different platform parents. Clients then get
# zwp_linux_dmabuf_v1.main_device = card1 and fall back to llvmpipe.
# https://github.com/hyprwm/aquamarine/issues/290
# https://github.com/hyprwm/aquamarine/pull/291 (in 0.12.0, not 26.05)
aquamarine =
if prev.aquamarine.version == "0.11.0" then
prev.aquamarine.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ./aquamarine-asahi-rendernode.patch ];
})
else
prev.aquamarine;
}