openalSoft: workaround a cross-compilation issue
openalSoft: workaround a cross-compilation issue

it is a issue openal-soft's FindOSS.cmake https://github.com/kcat/openal-soft/blob/master/cmake/FindOSS.cmake

trofi> Looking at the build failure (if I remove libc from buildInputs) I think the problem here is that it tries to pull in build's headers, not host's headers:
trofi> These unexpected headers are injected from OSS headers: openal-soft-aarch64-unknown-linux-gnu> -- Found OSS: /nix/store/xy6ngc2gxqcypczxbahrqz31xr97m6gg-glibc-2.35-163-dev/include.
trofi> The header path detection comes from cmake/FindOSS.cmake:
trofi> Apparently glibc headers do provide sys/soundcard.h and confuse cmake.

see nixpkgs issue: https://github.com/NixOS/nixpkgs/issues/183774

NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs