1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00

Merge pull request #36514 from oxij/pkgs/fix-pulseaudio-references-fix

SDL: propagate X11 libs even when building statically against them on Darwin
This commit is contained in:
Michael Raskin 2018-03-08 15:31:30 +00:00 committed by GitHub
commit b61ac66973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ ]
++ optionals (x11Support && !stdenv.isDarwin) [ libXext libICE libXrandr ]
++ optionals x11Support [ libXext libICE libXrandr ]
++ optional stdenv.isLinux libcap
++ optionals openglSupport [ libGL libGLU ]
++ optional alsaSupport alsaLib
@ -56,7 +56,6 @@ stdenv.mkDerivation rec {
++ optional stdenv.isDarwin Cocoa;
buildInputs = [ libiconv ]
++ optionals (x11Support && stdenv.isDarwin) [ libXext libICE libXrandr ]
++ optional (!hostPlatform.isMinGW) audiofile
++ optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreServices Kernel OpenGL ];