From 49d4a79d8773da78f8319cf8a787f8933ec47444 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 28 Jul 2025 06:04:26 +0000 Subject: [PATCH] animatch: switch SDL2 -> sdl2-compat, for clarity (theyre aliases) --- hosts/common/programs/animatch.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/common/programs/animatch.nix b/hosts/common/programs/animatch.nix index 7bdd253f3..23fa19dfe 100644 --- a/hosts/common/programs/animatch.nix +++ b/hosts/common/programs/animatch.nix @@ -21,14 +21,22 @@ # enable the allegro SDL backend, and achieve Wayland support via SDL's Wayland support. # TODO: see about upstreaming this to nixpkgs? allegro5 = allegro5.overrideAttrs (upstream: { - buildInputs = upstream.buildInputs ++ [ - SDL2 + buildInputs = (upstream.buildInputs or []) ++ [ + sdl2-compat ]; - cmakeFlags = upstream.cmakeFlags ++ [ + cmakeFlags = (upstream.cmakeFlags or []) ++ [ "-DALLEGRO_SDL=on" ]; + }); }; + # nativeBuildInputs = (upstream.nativeBuildInputs or []) ++ [ + # makeWrapper + # ]; + # postFixup = (upstream.postFixup or "") + '' + # wrapProgram $out/bin/animatch \ + # --set SDL_VIDEODRIVER wayland + # ''; buildCost = 1;