2015-04-26 05:43:37 +01:00
|
|
|
{ stdenv, fetchurl, lib, pkgconfig, alsaLib, libogg, libpulseaudio ? null, libjack2 ? null }:
|
2011-07-26 01:05:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-11 21:46:35 +01:00
|
|
|
pname = "alsa-plugins";
|
2020-02-23 05:55:36 +00:00
|
|
|
version = "1.2.2";
|
2009-09-20 22:54:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-04-11 21:46:35 +01:00
|
|
|
url = "mirror://alsa/plugins/${pname}-${version}.tar.bz2";
|
2020-02-23 05:55:36 +00:00
|
|
|
sha256 = "0z9k3ssbfk2ky2w13avgyf202j1drsz9sv3834bp33cj1i2hc3qw";
|
2009-09-20 22:54:23 +01:00
|
|
|
};
|
|
|
|
|
2020-03-07 22:09:49 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2014-06-19 19:24:23 +01:00
|
|
|
# ToDo: a52, etc.?
|
2011-07-26 01:05:10 +01:00
|
|
|
buildInputs =
|
2020-03-07 22:09:49 +00:00
|
|
|
[ alsaLib libogg ]
|
2015-04-26 05:43:37 +01:00
|
|
|
++ lib.optional (libpulseaudio != null) libpulseaudio
|
2021-01-01 21:08:35 +00:00
|
|
|
# https://github.com/NixOS/nixpkgs/issues/96548
|
|
|
|
++ lib.optional (libjack2 != null && (stdenv.buildPlatform == stdenv.hostPlatform)) libjack2;
|
2009-09-20 22:54:23 +01:00
|
|
|
|
2014-06-19 19:24:23 +01:00
|
|
|
meta = with lib; {
|
2011-07-26 01:05:10 +01:00
|
|
|
description = "Various plugins for ALSA";
|
2020-02-23 05:55:36 +00:00
|
|
|
homepage = "http://alsa-project.org/";
|
2014-08-02 04:08:07 +01:00
|
|
|
license = licenses.lgpl21;
|
2021-01-01 21:08:35 +00:00
|
|
|
maintainers = [ maintainers.marcweber ];
|
2014-06-19 19:24:23 +01:00
|
|
|
platforms = platforms.linux;
|
2009-09-20 22:54:23 +01:00
|
|
|
};
|
|
|
|
}
|