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

28 lines
791 B
Nix
Raw Normal View History

2015-04-26 06:43:37 +02:00
{ stdenv, fetchurl, lib, pkgconfig, alsaLib, libogg, libpulseaudio ? null, libjack2 ? null }:
stdenv.mkDerivation rec {
2015-04-26 06:43:37 +02:00
name = "alsa-plugins-1.0.29";
src = fetchurl {
urls = [
"ftp://ftp.alsa-project.org/pub/plugins/${name}.tar.bz2"
"http://alsa.cybermirror.org/plugins/${name}.tar.bz2"
];
2015-04-26 06:43:37 +02:00
sha256 = "0ck5xa0vnjhn5w23gf87y30h7bcb6hzsx4817sw35xl5qb58ap9j";
};
# ToDo: a52, etc.?
buildInputs =
[ pkgconfig alsaLib libogg ]
2015-04-26 06:43:37 +02:00
++ lib.optional (libpulseaudio != null) libpulseaudio
++ lib.optional (libjack2 != null) libjack2;
meta = with lib; {
description = "Various plugins for ALSA";
homepage = http://alsa-project.org/;
license = licenses.lgpl21;
maintainers = [maintainers.marcweber];
platforms = platforms.linux;
};
}