2019-02-03 07:31:23 -08:00
|
|
|
{ config, stdenv, lib, fetchFromGitHub
|
2021-01-18 22:50:56 -08:00
|
|
|
, autoconf, automake, which, libtool, pkg-config
|
2019-02-03 07:31:23 -08:00
|
|
|
, portaudio, alsaLib
|
|
|
|
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
|
2016-09-04 16:32:31 -07:00
|
|
|
|
2019-12-08 01:18:31 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "pcaudiolib";
|
2019-12-08 01:18:31 -08:00
|
|
|
version = "1.1";
|
2016-09-04 16:32:31 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-27 01:21:00 -08:00
|
|
|
owner = "espeak-ng";
|
2016-09-04 16:32:31 -07:00
|
|
|
repo = "pcaudiolib";
|
2020-11-01 14:39:49 -08:00
|
|
|
rev = version;
|
2019-12-08 01:18:31 -08:00
|
|
|
sha256 = "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0";
|
2016-09-04 16:32:31 -07:00
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ autoconf automake which libtool pkg-config ];
|
2016-09-04 16:32:31 -07:00
|
|
|
|
2020-12-27 01:20:00 -08:00
|
|
|
buildInputs = [ portaudio ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ alsaLib ]
|
|
|
|
++ lib.optionals pulseaudioSupport [ libpulseaudio ];
|
2016-09-04 16:32:31 -07:00
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Provides a C API to different audio devices";
|
2020-12-27 01:21:00 -08:00
|
|
|
homepage = "https://github.com/espeak-ng/pcaudiolib";
|
2016-09-04 16:32:31 -07:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ aske ];
|
2020-12-27 01:20:00 -08:00
|
|
|
platforms = platforms.all;
|
2016-09-04 16:32:31 -07:00
|
|
|
};
|
|
|
|
}
|