Merge pull request #112405 from alyssais/jack

libjack2: fix cross
This commit is contained in:
Florian Klink
2021-02-08 17:10:07 +01:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3
View File
@@ -48,6 +48,9 @@ stdenv.mkDerivation rec {
--replace /bin/bash ${bash}/bin/bash
'';
PKGCONFIG = "${stdenv.cc.targetPrefix}pkg-config";
dontAddWafCrossFlags = "true";
wafConfigureFlags = [
"--classic"
"--autostart=${if (optDbus != null) then "dbus" else "classic"}"
@@ -15,8 +15,7 @@ stdenv.mkDerivation rec {
buildInputs =
[ alsaLib libogg ]
++ lib.optional (libpulseaudio != null) libpulseaudio
# https://github.com/NixOS/nixpkgs/issues/96548
++ lib.optional (libjack2 != null && (stdenv.buildPlatform == stdenv.hostPlatform)) libjack2;
++ lib.optional (libjack2 != null) libjack2;
meta = with lib; {
description = "Various plugins for ALSA";