2015-05-27 20:42:15 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkgconfig, libpulseaudio, alsaLib, libcap
|
2016-02-11 06:54:19 +00:00
|
|
|
, CoreAudio, CoreServices, AudioUnit
|
2010-02-15 17:10:35 +00:00
|
|
|
, usePulseAudio }:
|
2008-02-11 21:02:38 +00:00
|
|
|
|
2014-08-29 13:56:49 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.2.0";
|
|
|
|
name = "libao-${version}";
|
2008-02-11 21:02:38 +00:00
|
|
|
src = fetchurl {
|
2014-08-29 13:56:49 +01:00
|
|
|
url = "http://downloads.xiph.org/releases/ao/${name}.tar.gz";
|
|
|
|
sha256 = "1bwwv1g9lchaq6qmhvj1pp3hnyqr64ydd4j38x94pmprs4d27b83";
|
2008-02-11 21:02:38 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
2015-10-06 16:06:02 +01:00
|
|
|
|
2014-08-29 13:56:49 +01:00
|
|
|
buildInputs =
|
2015-09-11 13:49:22 +01:00
|
|
|
[ pkgconfig ] ++
|
2017-05-12 10:23:56 +01:00
|
|
|
lib.optional usePulseAudio libpulseaudio ++
|
|
|
|
lib.optional stdenv.isLinux alsaLib ++
|
2016-02-11 06:54:19 +00:00
|
|
|
lib.optional stdenv.isLinux libcap ++
|
|
|
|
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
|
2008-02-11 21:02:38 +00:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00: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 22:50:51 +01:00
|
|
|
homepage = https://xiph.org/ao/;
|
2014-08-29 13:56:49 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with stdenv.lib.platforms; unix;
|
2008-02-11 21:02:38 +00:00
|
|
|
};
|
|
|
|
}
|