13 , pulseaudioSupport ? config.pulseaudio or stdenv.isLinux
16 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitHub {
22 repo = finalAttrs.pname;
23 rev = finalAttrs.version;
24 hash = "sha256-ZG/HBk5DHaZP/H3M01vDr3M2nP9awwsPuKpwtalz3EE=";
38 ++ lib.optional stdenv.isLinux alsa-lib
39 ++ lib.optional pulseaudioSupport libpulseaudio;
46 homepage = "https://github.com/espeak-ng/pcaudiolib";
47 description = "Provides a C API to different audio devices";
48 license = licenses.gpl3Plus;
49 maintainers = with maintainers; [ aske ];
50 platforms = platforms.unix;
51 badPlatforms = platforms.darwin;