nixpkgs/pkgs/development/libraries/libao/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2017-11-27 05:57:26 +03:00
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig, libpulseaudio, alsaLib, libcap
2019-04-21 23:04:34 +03:00
, CoreAudio, CoreServices, AudioUnit, AudioToolbox
, usePulseAudio }:
2014-08-29 16:56:49 +04:00
stdenv.mkDerivation rec {
2017-11-27 05:57:26 +03:00
version = "1.2.2";
2014-08-29 16:56:49 +04:00
name = "libao-${version}";
2017-11-27 05:57:26 +03:00
# the github mirror is more up to date than downloads.xiph.org
src = fetchFromGitHub {
owner = "xiph";
repo = "libao";
rev = "${version}";
sha256 = "0svgk4sc9kdhcsfyvbvgm5vpbg3sfr6z5rliflrw49v3x2i4vxq5";
};
2017-11-27 05:57:26 +03:00
configureFlags = [
"--disable-broken-oss"
"--enable-alsa-mmap"
];
outputs = [ "out" "dev" "man" "doc" ];
2015-10-06 18:06:02 +03:00
2017-11-27 05:57:26 +03:00
buildInputs = [ ] ++
lib.optional usePulseAudio libpulseaudio ++
lib.optionals stdenv.isLinux [ alsaLib libcap ] ++
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
2017-11-27 05:57:26 +03:00
nativeBuildInputs = [ autoreconfHook pkgconfig ];
meta = with stdenv.lib; {
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.
'';
homepage = https://xiph.org/ao/;
2017-11-27 05:57:26 +03:00
license = licenses.gpl2;
maintainers = with maintainers; [ fuuzetsu ];
platforms = with platforms; unix;
};
}