mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
SDL: Add alsaLib to propagatedNativeBuildInputs.
This is needed because the pkgconfig file contains linker flags for alsa-lib. And we had it propagated before already. Should fix build of quite a lot of SDL dependencies, such as SDL_image: https://hydra.nixos.org/build/10558332 Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
2a4282c811
commit
28229d8ef1
|
@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
|
|||
# Since `libpulse*.la' contain `-lgdbm', PulseAudio must be propagated.
|
||||
propagatedNativeBuildInputs =
|
||||
stdenv.lib.optionals x11Support [ x11 libXrandr ] ++
|
||||
stdenv.lib.optional alsaSupport alsaLib ++
|
||||
stdenv.lib.optional pulseaudioSupport pulseaudio;
|
||||
|
||||
buildInputs = let
|
||||
|
@ -33,8 +34,7 @@ stdenv.mkDerivation rec {
|
|||
in stdenv.lib.optional notMingw audiofile;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ] ++
|
||||
stdenv.lib.optional openglSupport [ mesa ] ++
|
||||
stdenv.lib.optional alsaSupport alsaLib;
|
||||
stdenv.lib.optional openglSupport [ mesa ];
|
||||
|
||||
# XXX: By default, SDL wants to dlopen() PulseAudio, in which case
|
||||
# we must arrange to add it to its RPATH; however, `patchelf' seems
|
||||
|
|
Loading…
Reference in a new issue