3
0
Fork 0
forked from mirrors/nixpkgs

snapcast: unbreak on x86_64-darwin

This commit is contained in:
Weijia Wang 2022-12-24 20:26:55 +01:00
parent 815e8e0a94
commit f5a98fef5f
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,6 @@
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, darwin
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
, alsa-lib, asio, avahi, boost17x, flac, libogg, libvorbis, soxr
, IOKit, AudioToolbox
, aixlog, popl
, pulseaudioSupport ? false, libpulseaudio
, nixosTests }:
@ -26,7 +27,7 @@ stdenv.mkDerivation rec {
aixlog popl soxr
] ++ lib.optional pulseaudioSupport libpulseaudio
++ lib.optional stdenv.isLinux alsa-lib
++ lib.optionals stdenv.isDarwin [darwin.apple_sdk.frameworks.IOKit darwin.apple_sdk.frameworks.AudioToolbox];
++ lib.optionals stdenv.isDarwin [ IOKit AudioToolbox ];
TARGET=lib.optionalString stdenv.isDarwin "MACOS";
@ -45,7 +46,5 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux ++ platforms.darwin;
license = licenses.gpl3Plus;
# never built on x86_64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}

View file

@ -11713,7 +11713,8 @@ with pkgs;
snallygaster = callPackage ../tools/security/snallygaster { };
snapcast = callPackage ../applications/audio/snapcast {
snapcast = darwin.apple_sdk_11_0.callPackage ../applications/audio/snapcast {
inherit (darwin.apple_sdk_11_0.frameworks) IOKit AudioToolbox;
pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
};