Merge pull request #227242 from wegank/anki-darwin-pre

anki: add missing darwin components
This commit is contained in:
Weijia Wang 2023-04-20 15:25:56 +03:00 committed by GitHub
commit 1bb5759cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -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;

View File

@ -35681,7 +35681,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 { };