mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
a17216af4c
Make either 'bin' or 'out' the first output.
33 lines
1 KiB
Nix
33 lines
1 KiB
Nix
{ lib, stdenv, fetchurl, pkgconfig, libpulseaudio, alsaLib, libcap
|
|
, CoreAudio, CoreServices, AudioUnit
|
|
, usePulseAudio }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.2.0";
|
|
name = "libao-${version}";
|
|
src = fetchurl {
|
|
url = "http://downloads.xiph.org/releases/ao/${name}.tar.gz";
|
|
sha256 = "1bwwv1g9lchaq6qmhvj1pp3hnyqr64ydd4j38x94pmprs4d27b83";
|
|
};
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
buildInputs =
|
|
[ 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/;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
|
platforms = with stdenv.lib.platforms; unix;
|
|
};
|
|
}
|