nixpkgs-suyu/pkgs/os-specific/linux/alsa-plugins/default.nix

29 lines
861 B
Nix
Raw Normal View History

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