bb1914a1ab
GitOrigin-RevId: 733e537a8ad76fd355b6f501127f7d0eb8861775
32 lines
930 B
Nix
32 lines
930 B
Nix
{ config, stdenv, lib, fetchFromGitHub
|
|
, autoconf, automake, which, libtool, pkgconfig
|
|
, portaudio, alsaLib
|
|
, pulseaudioSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pcaudiolib";
|
|
version = "1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "espeak-ng";
|
|
repo = "pcaudiolib";
|
|
rev = version;
|
|
sha256 = "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoconf automake which libtool pkgconfig ];
|
|
|
|
buildInputs = [ portaudio ]
|
|
++ lib.optionals stdenv.isLinux [ alsaLib ]
|
|
++ lib.optionals pulseaudioSupport [ libpulseaudio ];
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Provides a C API to different audio devices";
|
|
homepage = "https://github.com/espeak-ng/pcaudiolib";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ aske ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|