alsa-plugins: don't build with libjack2 support when cross-compiling
libjack2 doesn't cross-compile, see https://github.com/NixOS/nixpkgs/issues/96548. The pulseaudio NixOS module uses pkgs.alsaPlugins to create its asound.conf, so let's make sure that one can be built when cross-compiling.
This commit is contained in:
parent
c0a9361687
commit
033cfcce15
@ -15,13 +15,14 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs =
|
buildInputs =
|
||||||
[ alsaLib libogg ]
|
[ alsaLib libogg ]
|
||||||
++ lib.optional (libpulseaudio != null) libpulseaudio
|
++ lib.optional (libpulseaudio != null) libpulseaudio
|
||||||
++ lib.optional (libjack2 != null) libjack2;
|
# https://github.com/NixOS/nixpkgs/issues/96548
|
||||||
|
++ lib.optional (libjack2 != null && (stdenv.buildPlatform == stdenv.hostPlatform)) libjack2;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Various plugins for ALSA";
|
description = "Various plugins for ALSA";
|
||||||
homepage = "http://alsa-project.org/";
|
homepage = "http://alsa-project.org/";
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
maintainers = [maintainers.marcweber];
|
maintainers = [ maintainers.marcweber ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user