nixpkgs/pkgs/os-specific/linux/alsa-plugins/default.nix
2016-11-02 13:07:21 +01:00

28 lines
790 B
Nix

{ stdenv, fetchurl, lib, pkgconfig, alsaLib, libogg, libpulseaudio ? null, libjack2 ? null }:
stdenv.mkDerivation rec {
name = "alsa-plugins-1.1.1";
src = fetchurl {
urls = [
"ftp://ftp.alsa-project.org/pub/plugins/${name}.tar.bz2"
"http://alsa.cybermirror.org/plugins/${name}.tar.bz2"
];
sha256 = "1w81z5jlwqhd1l2m7qrq69lc4k9dnrg1wn52jsl2hrf3hbhd394f";
};
# ToDo: a52, etc.?
buildInputs =
[ pkgconfig alsaLib libogg ]
++ 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;
};
}