chickenPackages.chickenEggs.sdl2: fix build on linux

Change needed since the enablement of `strictDeps = true`.
This commit is contained in:
Daniel Nagy 2023-10-24 14:45:00 +02:00
parent 1e386048cc
commit 4e618602f0
No known key found for this signature in database
GPG Key ID: 1B8E8DCB576FB671

View File

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