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