1 { stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config, libpulseaudio, alsa-lib, libcap
2 , CoreAudio, CoreServices, AudioUnit
5 stdenv.mkDerivation rec {
9 # the github mirror is more up to date than downloads.xiph.org
10 src = fetchFromGitHub {
14 sha256 = "0svgk4sc9kdhcsfyvbvgm5vpbg3sfr6z5rliflrw49v3x2i4vxq5";
18 "--disable-broken-oss"
22 outputs = [ "out" "dev" "man" "doc" ];
25 lib.optional usePulseAudio libpulseaudio ++
26 lib.optionals stdenv.isLinux [ alsa-lib libcap ] ++
27 lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
29 nativeBuildInputs = [ autoreconfHook pkg-config ];
33 Libao is Xiph.org's cross-platform audio library that allows
34 programs to output audio using a simple API on a wide variety of
37 homepage = "https://xiph.org/ao/";
38 license = licenses.gpl2;
39 maintainers = with maintainers; [ ];
40 platforms = with platforms; unix;