animatch: simplify cross compilation override
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user