libcanberra: fix darwin build (#47634)
This commit is contained in:
parent
9ac7893042
commit
aeee761aba
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, libtool
|
{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, libtool
|
||||||
, gtk ? null
|
, gtk ? null
|
||||||
, libpulseaudio, gst_all_1, libvorbis, libcap
|
, libpulseaudio, gst_all_1, libvorbis, libcap
|
||||||
|
, CoreServices
|
||||||
, withAlsa ? stdenv.isLinux, alsaLib }:
|
, withAlsa ? stdenv.isLinux, alsaLib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -15,6 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
libpulseaudio libvorbis gtk
|
libpulseaudio libvorbis gtk
|
||||||
] ++ (with gst_all_1; [ gstreamer gst-plugins-base ])
|
] ++ (with gst_all_1; [ gstreamer gst-plugins-base ])
|
||||||
|
++ lib.optional stdenv.isDarwin CoreServices
|
||||||
++ lib.optional stdenv.isLinux libcap
|
++ lib.optional stdenv.isLinux libcap
|
||||||
++ lib.optional withAlsa alsaLib;
|
++ lib.optional withAlsa alsaLib;
|
||||||
|
|
||||||
|
@ -10254,7 +10254,9 @@ with pkgs;
|
|||||||
inherit (xorg) libX11 libXext;
|
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 {
|
libcanberra-gtk3 = pkgs.libcanberra.override {
|
||||||
gtk = gtk3;
|
gtk = gtk3;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user