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