openalSoft: support cross-compilation

It failed with 'missing gnu/stubs-32.h'.
Adding glibc to buildInputs helps.

Co-authored-by: symphorien+git@xlumurb.eu
This commit is contained in:
Rick van Schijndel 2021-11-17 08:53:45 +01:00
parent a2aaaee3d9
commit 1674e25fb1

View File

@ -23,9 +23,12 @@ stdenv.mkDerivation rec {
--replace "@OUT@" $out
'';
strictDeps = true;
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional alsaSupport alsa-lib
buildInputs = lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) stdenv.cc.libc
++ lib.optional alsaSupport alsa-lib
++ lib.optional pulseSupport libpulseaudio
++ lib.optionals stdenv.isDarwin [ CoreServices AudioUnit AudioToolbox ];