1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 10:56:56 +00:00
nixpkgs/pkgs/development/libraries/libao/default.nix

32 lines
977 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkgconfig, libpulseaudio, alsaLib, libcap
, CoreAudio, CoreServices, AudioUnit
, usePulseAudio }:
2014-08-29 13:56:49 +01:00
stdenv.mkDerivation rec {
version = "1.2.0";
name = "libao-${version}";
src = fetchurl {
2014-08-29 13:56:49 +01:00
url = "http://downloads.xiph.org/releases/ao/${name}.tar.gz";
sha256 = "1bwwv1g9lchaq6qmhvj1pp3hnyqr64ydd4j38x94pmprs4d27b83";
};
2015-10-06 16:06:02 +01:00
outputs = [ "dev" "out" "doc" ];
2014-08-29 13:56:49 +01:00
buildInputs =
2015-09-11 13:49:22 +01:00
[ pkgconfig ] ++
lib.optional stdenv.isLinux (if usePulseAudio then libpulseaudio else alsaLib) ++
lib.optional stdenv.isLinux libcap ++
lib.optionals stdenv.isDarwin [ CoreAudio CoreServices AudioUnit ];
meta = {
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 = http://xiph.org/ao/;
2014-08-29 13:56:49 +01:00
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
}