2019-02-03 16:31:23 +01:00
|
|
|
{ config, stdenv, lib, fetchFromGitHub
|
|
|
|
, autoconf, automake, which, libtool, pkgconfig
|
|
|
|
, portaudio, alsaLib
|
|
|
|
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
|
2016-09-05 01:32:31 +02:00
|
|
|
|
2019-12-08 10:18:31 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pcaudiolib";
|
2019-12-08 10:18:31 +01:00
|
|
|
version = "1.1";
|
2016-09-05 01:32:31 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhdunn";
|
|
|
|
repo = "pcaudiolib";
|
2019-12-08 10:18:31 +01:00
|
|
|
rev = "${version}";
|
|
|
|
sha256 = "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0";
|
2016-09-05 01:32:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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 22:03:30 +02:00
|
|
|
homepage = https://github.com/rhdunn/pcaudiolib;
|
2016-09-05 01:32:31 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ aske ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|