2017-11-26 18:57:26 -08:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig, libpulseaudio, alsaLib, libcap
|
2019-06-16 12:59:06 -07:00
|
|
|
, CoreAudio, CoreServices, AudioUnit
|
2010-02-15 09:10:35 -08:00
|
|
|
, usePulseAudio }:
|
2008-02-11 13:02:38 -08:00
|
|
|
|
2014-08-29 05:56:49 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2017-11-26 18:57:26 -08:00
|
|
|
version = "1.2.2";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "libao";
|
2017-11-26 18:57:26 -08:00
|
|
|
|
|
|
|
# the github mirror is more up to date than downloads.xiph.org
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xiph";
|
|
|
|
repo = "libao";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2017-11-26 18:57:26 -08:00
|
|
|
sha256 = "0svgk4sc9kdhcsfyvbvgm5vpbg3sfr6z5rliflrw49v3x2i4vxq5";
|
2008-02-11 13:02:38 -08:00
|
|
|
};
|
|
|
|
|
2017-11-26 18:57:26 -08:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-broken-oss"
|
|
|
|
"--enable-alsa-mmap"
|
|
|
|
];
|
|
|
|
|
2017-07-11 02:14:14 -07:00
|
|
|
outputs = [ "out" "dev" "man" "doc" ];
|
2015-10-06 08:06:02 -07:00
|
|
|
|
2017-11-26 18:57:26 -08:00
|
|
|
buildInputs = [ ] ++
|
|
|
|
lib.optional usePulseAudio libpulseaudio ++
|
|
|
|
lib.optionals stdenv.isLinux [ alsaLib libcap ] ++
|
2019-04-22 18:22:07 -07:00
|
|
|
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
|
2008-02-11 13:02:38 -08:00
|
|
|
|
2017-11-26 18:57:26 -08:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2009-03-03 05:27:40 -08:00
|
|
|
longDescription = ''
|
|
|
|
Libao is Xiph.org's cross-platform audio library that allows
|
|
|
|
programs to output audio using a simple API on a wide variety of
|
|
|
|
platforms.
|
|
|
|
'';
|
2017-08-02 14:50:51 -07:00
|
|
|
homepage = https://xiph.org/ao/;
|
2017-11-26 18:57:26 -08:00
|
|
|
license = licenses.gpl2;
|
2019-12-04 23:29:48 -08:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-11-26 18:57:26 -08:00
|
|
|
platforms = with platforms; unix;
|
2008-02-11 13:02:38 -08:00
|
|
|
};
|
|
|
|
}
|