depot/third_party/nixpkgs/pkgs/development/libraries/pcaudiolib/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

32 lines
927 B
Nix

{ config, stdenv, lib, fetchFromGitHub
, autoconf, automake, which, libtool, pkg-config
, portaudio, alsa-lib
, 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 pkg-config ];
buildInputs = [ portaudio ]
++ lib.optionals stdenv.isLinux [ alsa-lib ]
++ lib.optionals pulseaudioSupport [ libpulseaudio ];
preConfigure = "./autogen.sh";
meta = with 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;
};
}