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:
parent
c0395aba07
commit
104eb09951
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user