Skip to content

Commit

Permalink
cmus: add VideoToolbox dependency on Darwin
Browse files Browse the repository at this point in the history
Fixes the build on aarch64-darwin.
  • Loading branch information
emilazy committed Sep 15, 2021
1 parent b725cd7 commit 717c5c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/audio/cmus/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ config, lib, stdenv, fetchFromGitHub, runCommand, ncurses, pkg-config
, libiconv, CoreAudio, AudioUnit
, libiconv, CoreAudio, AudioUnit, VideoToolbox

, alsaSupport ? stdenv.isLinux, alsa-lib ? null
# simple fallback for everyone else
Expand Down Expand Up @@ -121,7 +121,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ncurses ]
++ lib.optional stdenv.cc.isClang clangGCC
++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit ]
++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit VideoToolbox ]
++ flatten (concatMap (a: a.deps) opts);

makeFlags = [ "LD=$(CC)" ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23967,7 +23967,7 @@ with pkgs;
cmatrix = callPackage ../applications/misc/cmatrix { };

cmus = callPackage ../applications/audio/cmus {
inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio;
inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio VideoToolbox;
libjack = libjack2;
};

Expand Down

0 comments on commit 717c5c6

Please sign in to comment.