2021-06-28 23:13:55 +00:00
|
|
|
{ stdenv, fetchurl, lib, pkg-config, alsa-lib, libogg, libpulseaudio ? null, libjack2 ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alsa-plugins";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "1.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://alsa/plugins/${pname}-${version}.tar.bz2";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-BogYpLVdjAKdqgABXYU9RRE/VrIkt8ZOHhF5iMglsqA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# ToDo: a52, etc.?
|
|
|
|
buildInputs =
|
2021-06-28 23:13:55 +00:00
|
|
|
[ alsa-lib libogg ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ lib.optional (libpulseaudio != null) libpulseaudio
|
2021-03-09 03:18:52 +00:00
|
|
|
++ lib.optional (libjack2 != null) libjack2;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Various plugins for ALSA";
|
|
|
|
homepage = "http://alsa-project.org/";
|
|
|
|
license = licenses.lgpl21;
|
2021-01-05 17:05:55 +00:00
|
|
|
maintainers = [ maintainers.marcweber ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|