mpd: fix on darwin

This commit is contained in:
Vincent Laporte 2016-09-13 18:02:20 +02:00
parent 2628ea4446
commit b7fabd39b3

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, glib, systemd, boost { stdenv, fetchurl, pkgconfig, glib, systemd, boost, darwin
, alsaSupport ? true, alsaLib , alsaSupport ? true, alsaLib
, flacSupport ? true, flac , flacSupport ? true, flac
, vorbisSupport ? true, libvorbis , vorbisSupport ? true, libvorbis
@ -42,6 +42,7 @@ in stdenv.mkDerivation rec {
patches = stdenv.lib.optionals stdenv.isDarwin ./darwin-enable-cxx-exceptions.patch; patches = stdenv.lib.optionals stdenv.isDarwin ./darwin-enable-cxx-exceptions.patch;
buildInputs = [ pkgconfig glib boost ] buildInputs = [ pkgconfig glib boost ]
++ opt stdenv.isDarwin darwin.apple_sdk.frameworks.CoreAudioKit
++ opt stdenv.isLinux systemd ++ opt stdenv.isLinux systemd
++ opt (stdenv.isLinux && alsaSupport) alsaLib ++ opt (stdenv.isLinux && alsaSupport) alsaLib
++ opt flacSupport flac ++ opt flacSupport flac