Merge pull request #183866 from Artturin/openalsofworkaround
This commit is contained in:
commit
baa3a6cd12
@ -29,8 +29,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) stdenv.cc.libc
|
||||
++ lib.optional alsaSupport alsa-lib
|
||||
buildInputs = lib.optional alsaSupport alsa-lib
|
||||
++ lib.optional dbusSupport dbus
|
||||
++ lib.optional pipewireSupport pipewire
|
||||
++ lib.optional pulseSupport libpulseaudio
|
||||
@ -40,6 +39,9 @@ stdenv.mkDerivation rec {
|
||||
# Automatically links dependencies without having to rely on dlopen, thus
|
||||
# removes the need for NIX_LDFLAGS.
|
||||
"-DALSOFT_DLOPEN=OFF"
|
||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
# https://github.com/NixOS/nixpkgs/issues/183774
|
||||
"-DOSS_INCLUDE_DIR=${stdenv.cc.libc}/include"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user