From ff95913192eea0f4b3d288347e062002c111a55e Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:16:48 +0300 Subject: [PATCH] anki: add missing darwin components --- pkgs/games/anki/default.nix | 9 +++++++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/games/anki/default.nix b/pkgs/games/anki/default.nix index bf82e7d90350..38cb2c806f68 100644 --- a/pkgs/games/anki/default.nix +++ b/pkgs/games/anki/default.nix @@ -17,6 +17,8 @@ , rustPlatform , writeShellScriptBin , yarn +, swift +, AVKit , CoreAudio }: @@ -138,7 +140,7 @@ python3.pkgs.buildPythonApplication { ninja qt6.wrapQtAppsHook rsync - ]; + ] ++ lib.optional stdenv.isDarwin swift; nativeCheckInputs = with python3.pkgs; [ pytest mock astroid ]; buildInputs = [ @@ -186,7 +188,10 @@ python3.pkgs.buildPythonApplication { waitress werkzeug zipp - ] ++ lib.optionals stdenv.isDarwin [ CoreAudio ]; + ] ++ lib.optionals stdenv.isDarwin [ + AVKit + CoreAudio + ]; # Activate optimizations RELEASE = true; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 89d0a2fae172..15da810df8ce 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35689,7 +35689,7 @@ with pkgs; angband = callPackage ../games/angband { }; anki = callPackage ../games/anki { - inherit (darwin.apple_sdk.frameworks) CoreAudio; + inherit (darwin.apple_sdk.frameworks) AVKit CoreAudio; }; anki-bin = callPackage ../games/anki/bin.nix { };