summary refs log tree commit diff
path: root/pkgs/development/libraries/libao/default.nix
blob: 2fc03e0d67cc680fa0b876b4d9a7c035654a5dd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl, pkgconfig, pulseaudio, alsaLib
, usePulseAudio }:

stdenv.mkDerivation {
  name = "libao-1.1.0";
  src = fetchurl {
    url = http://downloads.xiph.org/releases/ao/libao-1.1.0.tar.gz;
    sha256 = "1m0v2y6bhr4iwsgdkc7b3y0qgpvpv1ifbxsy8n8ahsvjn6wmppi9";
  };

  buildInputs = [ pkgconfig alsaLib ] ++ (if usePulseAudio then [ pulseaudio ]
    else [ alsaLib ]);

  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 = "GPLv2+";
  };
}