From 6a92260227e469098623253a1ae527b2d3a73570 Mon Sep 17 00:00:00 2001 From: DarkScythe97 Date: Sun, 4 Mar 2018 09:39:44 +1030 Subject: [PATCH] retroarch: fix darwin build --- pkgs/misc/emulators/retroarch/default.nix | 2 ++ pkgs/top-level/all-packages.nix | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/emulators/retroarch/default.nix b/pkgs/misc/emulators/retroarch/default.nix index 3b160c46c912..c7c9bf08c713 100644 --- a/pkgs/misc/emulators/retroarch/default.nix +++ b/pkgs/misc/emulators/retroarch/default.nix @@ -1,5 +1,6 @@ { stdenv, fetchFromGitHub, which, pkgconfig, makeWrapper , ffmpeg, mesa, freetype, libxml2, python34 +, libobjc, AppKit, Foundation , alsaLib ? null , libpulseaudio ? null , libv4l ? null @@ -32,6 +33,7 @@ stdenv.mkDerivation rec { buildInputs = [ ffmpeg freetype libxml2 mesa python34 SDL2 which ] ++ optional enableNvidiaCgToolkit nvidia_cg_toolkit ++ optional withVulkan [ vulkan-loader ] + ++ optionals stdenv.isDarwin [ libobjc AppKit Foundation ] ++ optionals stdenv.isLinux [ alsaLib libpulseaudio libv4l libX11 libXdmcp libXext libXxf86vm udev ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99232bf8ea30..005a1fd42286 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20350,7 +20350,10 @@ with pkgs; redprl = callPackage ../applications/science/logic/redprl { }; - retroarchBare = callPackage ../misc/emulators/retroarch { }; + retroarchBare = callPackage ../misc/emulators/retroarch { + inherit (darwin) libobjc; + inherit (darwin.apple_sdk.frameworks) AppKit Foundation; + }; retroarch = wrapRetroArch { retroarch = retroarchBare; };