From b23eb059cca34e280382bb224e072727c5d6143a Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 19 May 2023 20:04:06 +0300 Subject: [PATCH] doomretro: fix build on darwin --- pkgs/games/doom-ports/doomretro/default.nix | 3 +++ pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/games/doom-ports/doomretro/default.nix b/pkgs/games/doom-ports/doomretro/default.nix index dd274c1bfeaa..c584f64b5d3e 100644 --- a/pkgs/games/doom-ports/doomretro/default.nix +++ b/pkgs/games/doom-ports/doomretro/default.nix @@ -6,6 +6,7 @@ , SDL2 , SDL2_image , SDL2_mixer +, Cocoa }: stdenv.mkDerivation (finalAttrs: { @@ -28,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: { SDL2 SDL2_image SDL2_mixer + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + Cocoa ]; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index feac7c4a2d94..fa32f91b99a9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35942,7 +35942,9 @@ with pkgs; doomseeker = qt5.callPackage ../games/doom-ports/doomseeker { }; - doomretro = callPackage ../games/doom-ports/doomretro { }; + doomretro = callPackage ../games/doom-ports/doomretro { + inherit (darwin.apple_sdk.frameworks) Cocoa; + }; chocolate-doom = callPackage ../games/doom-ports/chocolate-doom { };