about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/pcaudiolib/default.nix
blob: 5a02229cb0e20b981190bb3496c0ca8529965c84 (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
24
25
26
27
28
29
30
{ config, stdenv, lib, fetchFromGitHub
, autoconf, automake, which, libtool, pkgconfig
, portaudio, alsaLib
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:

stdenv.mkDerivation {
  pname = "pcaudiolib";
  version = "2016-07-19";

  src = fetchFromGitHub {
    owner = "rhdunn";
    repo = "pcaudiolib";
    rev = "4f836ea909bdaa8a6e0e89c587efc745b546b459";
    sha256 = "0z99nh4ibb9md2cd21762n1dmv6jk988785s1cxd8lsy4hp4pwfa";
  };

  nativeBuildInputs = [ autoconf automake which libtool pkgconfig ];

  buildInputs = [ portaudio alsaLib ] ++ lib.optional pulseaudioSupport libpulseaudio;

  preConfigure = "./autogen.sh";

  meta = with stdenv.lib; {
    description = "Provides a C API to different audio devices";
    homepage = https://github.com/rhdunn/pcaudiolib;
    license = licenses.gpl3;
    maintainers = with maintainers; [ aske ];
    platforms = platforms.linux;
  };
}