animatch: switch SDL2 -> sdl2-compat, for clarity (theyre aliases)

This commit is contained in:
2025-07-28 06:04:26 +00:00
parent 3e09196687
commit 49d4a79d87

View File

@@ -21,14 +21,22 @@
# enable the allegro SDL backend, and achieve Wayland support via SDL's Wayland support. # enable the allegro SDL backend, and achieve Wayland support via SDL's Wayland support.
# TODO: see about upstreaming this to nixpkgs? # TODO: see about upstreaming this to nixpkgs?
allegro5 = allegro5.overrideAttrs (upstream: { allegro5 = allegro5.overrideAttrs (upstream: {
buildInputs = upstream.buildInputs ++ [ buildInputs = (upstream.buildInputs or []) ++ [
SDL2 sdl2-compat
]; ];
cmakeFlags = upstream.cmakeFlags ++ [ cmakeFlags = (upstream.cmakeFlags or []) ++ [
"-DALLEGRO_SDL=on" "-DALLEGRO_SDL=on"
]; ];
}); });
}; };
# nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [
# makeWrapper
# ];
# postFixup = (upstream.postFixup or "") + ''
# wrapProgram $out/bin/animatch \
# --set SDL_VIDEODRIVER wayland
# '';
buildCost = 1; buildCost = 1;