<commit_before>{ 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 = "rhdunn";
    repo = "pcaudiolib";
    rev = version;
    sha256 = "0c55hlqqh0m7bcb3nlgv1s4a22s5bgczr1cakjh3767rjb10khi0";
  };

  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";
    homepage = "https://github.com/rhdunn/pcaudiolib";
    license = licenses.gpl3;
    maintainers = with maintainers; [ aske ];
    platforms = platforms.linux;
  };
}
<commit_msg>pcaudiolib: enable on darwin<commit_after>{ 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 = "rhdunn";
    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/rhdunn/pcaudiolib";
    license = licenses.gpl3;
    maintainers = with maintainers; [ aske ];
    platforms = platforms.all;
  };
}

{'fraction_non_alphanumeric': 0.11176470588235295, 'fraction_numerical': 0.026737967914438502, 'mean_word_length': 3.936675461741425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7314121', 'n_tokens_mistral': 716, 'n_tokens_neox': 667, 'n_words': 143}