animatch: simplify cross compilation override

This commit is contained in:
2025-08-08 16:04:43 +00:00
parent 2f7a7026c4
commit 7608534b25

View File

@@ -19,17 +19,7 @@
packageUnwrapped = with pkgs; animatch.override {
# allegro has no native wayland support, and so by default crashes when run without Xwayland.
# enable the allegro SDL backend, and achieve Wayland support via SDL's Wayland support.
# TODO: switch to `allegro5.override { useSDL = true; }` once upstreamed:
# - <https://github.com/NixOS/nixpkgs/pull/429173>
allegro5 = allegro5.overrideAttrs (upstream: {
buildInputs = (upstream.buildInputs or []) ++ [
sdl2-compat
];
cmakeFlags = (upstream.cmakeFlags or []) ++ [
"-DALLEGRO_SDL=on"
];
});
allegro5 = allegro5.override { useSDL = true; };
};
# nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
# makeWrapper