2019-02-03 15:31:23 +00:00
|
|
|
{ config, stdenv, lib, fetchFromGitHub
|
|
|
|
, autoconf, automake, which, libtool, pkgconfig
|
|
|
|
, portaudio, alsaLib
|
|
|
|
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
|
2016-09-05 00:32:31 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pcaudiolib";
|
2016-09-05 00:32:31 +01:00
|
|
|
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";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/rhdunn/pcaudiolib;
|
2016-09-05 00:32:31 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ aske ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|