anchor.diff:      sha256 = "005d993xcac8236fpvd1iawkz4wqjybkpn8dbwaliqz5jfkidlyn";
     };
   
  -  outputs = [ "out" "man" ];
  -
     buildInputs = [
  +    alsa-lib
       audiofile
  -  ] ++ optionals x11Support [ xlibsWrapper xorg.libXrandr ]
  -    ++ optional alsaSupport alsaLib
  -    ++ optional stdenv.isLinux libcap
  -    ++ optional openglSupport mesa
  -    ++ optional pulseaudioSupport libpulseaudio;
  +    libcap
  +    mesa
  +    pulseaudio_lib
  +    xlibsWrapper
  +    xorg.libXrandr
  +  ];
   
     # XXX: By default, SDL wants to dlopen() PulseAudio, in which case
     # we must arrange to add it to its RPATH; however, `patchelf' seems
  
positive.code:     })
    ];
  
    passthru = { inherit openglSupport; };
  
    meta = with stdenv.lib; {
      description = "A cross-platform multimedia library";
      homepage    = http://www.libsdl.org/;
      maintainers = with maintainers; [ lovek323 ];
      platforms   = platforms.unix;
      license     = licenses.lgpl21;
    };
  }
  
negative.code: { stdenv
  , fetchurl
  , fetchpatch
  
  , alsa-lib
  , audiofile
  , libcap
  , mesa
  , pulseaudio_lib
  , xlibsWrapper
  , xorg
  }:
  
  let
    inherit (stdenv.lib)
      optional
      optionals;
  in
  stdenv.mkDerivation rec {
    version = "1.2.15";
  