libcanberra: fix darwin build (#47634)

This commit is contained in:
Josef Kemetmüller 2018-10-02 12:55:57 +02:00 committed by xeji
parent 9ac7893042
commit aeee761aba
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, libtool
, gtk ? null
, libpulseaudio, gst_all_1, libvorbis, libcap
, CoreServices
, withAlsa ? stdenv.isLinux, alsaLib }:
stdenv.mkDerivation rec {
@ -15,6 +16,7 @@ stdenv.mkDerivation rec {
buildInputs = [
libpulseaudio libvorbis gtk
] ++ (with gst_all_1; [ gstreamer gst-plugins-base ])
++ lib.optional stdenv.isDarwin CoreServices
++ lib.optional stdenv.isLinux libcap
++ lib.optional withAlsa alsaLib;

View file

@ -10254,7 +10254,9 @@ with pkgs;
inherit (xorg) libX11 libXext;
};
libcanberra = callPackage ../development/libraries/libcanberra { };
libcanberra = callPackage ../development/libraries/libcanberra {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
libcanberra-gtk3 = pkgs.libcanberra.override {
gtk = gtk3;
};