alsa-plugins: add more dependencies, make existing dependencies unconditional

Add ffmpeg for a52 plugin, speexdsp for rate_speex plugin.
Don't add libsamplerate (speexdsp is generally a better resampler),
libavtp (not packaged currently, very niche).

The current dependency handling is a weird hack, we don't need to do it,
even if people override it to null it will be ignored.
This commit is contained in:
K900 2024-11-03 16:31:52 +03:00
parent c0395aba07
commit 104eb09951

View File

@ -1,4 +1,15 @@
{ stdenv, fetchurl, lib, pkg-config, alsa-lib, libogg, libpulseaudio ? null, libjack2 ? null }:
{
stdenv,
fetchurl,
lib,
pkg-config,
alsa-lib,
ffmpeg,
libjack2,
libogg,
libpulseaudio,
speexdsp,
}:
stdenv.mkDerivation rec {
pname = "alsa-plugins";
@ -11,11 +22,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config ];
# ToDo: a52, etc.?
buildInputs =
[ alsa-lib libogg ]
++ lib.optional (libpulseaudio != null) libpulseaudio
++ lib.optional (libjack2 != null) libjack2;
buildInputs = [
alsa-lib
ffmpeg
libjack2
libogg
libpulseaudio
speexdsp
];
meta = with lib; {
description = "Various plugins for ALSA";