chickenPackages.chickenEggs.sdl-base: fix build on linux

This commit is contained in:
Daniel Nagy 2023-10-29 23:15:00 +01:00
parent fe1e9d524b
commit af99f7c796
No known key found for this signature in database
GPG Key ID: 1B8E8DCB576FB671

View File

@ -68,7 +68,10 @@ in
scheme2c-compatibility = old:
addToNativeBuildInputs (lib.optionals (stdenv.system == "x86_64-darwin") [ pkgs.memorymappingHook ])
(addPkgConfig old);
sdl-base = addToBuildInputs pkgs.SDL;
sdl-base = old:
((addToPropagatedBuildInputsWithPkgConfig pkgs.SDL old) //
# needed for sdl-config to be in PATH
(addToNativeBuildInputs pkgs.SDL old));
sdl2 = old:
((addToPropagatedBuildInputsWithPkgConfig pkgs.SDL2 old) //
# needed for sdl2-config to be in PATH