From 8b9ff564c767fb2f4a9a8b81dc93a38d83154863 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 8 Feb 2021 14:49:10 +0000 Subject: [PATCH] libjack2: fix cross Always defaults to unprefixed pkg-config, even when cross-compiling. Fixes: https://github.com/NixOS/nixpkgs/issues/96548 --- pkgs/misc/jackaudio/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/misc/jackaudio/default.nix b/pkgs/misc/jackaudio/default.nix index 24d2b5e135cf..9dd973674412 100644 --- a/pkgs/misc/jackaudio/default.nix +++ b/pkgs/misc/jackaudio/default.nix @@ -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"}"