diff --git a/pkgs/development/libraries/SDL/default.nix b/pkgs/development/libraries/SDL/default.nix index 1e32a5985060..f23955228f75 100644 --- a/pkgs/development/libraries/SDL/default.nix +++ b/pkgs/development/libraries/SDL/default.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { buildInputs = let notMingw = !(stdenv ? cross) || stdenv.cross.libc != "msvcrt"; - in [ libcap ] + in stdenv.lib.optional stdenv.isLinux libcap ++ (stdenv.lib.optional notMingw audiofile); nativeBuildInputs = [ pkgconfig ] ++