anchor.diff:      })
     ];
   
  -  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;
  +    platforms   = platforms.all;
       license     = licenses.lgpl21;
     };
   }
  
positive.code: { stdenv, fetchurl, fetchpatch, audiofile, libcap
  , openglSupport ? false, mesa ? null
  , alsaSupport ? true, alsaLib ? null
  , x11Support ? true, xlibsWrapper ? null, xorg ? null
  , pulseaudioSupport ? true, libpulseaudio ? null
  }:
  
  # OSS is no longer supported, for it's much crappier than ALSA and
  # PulseAudio.
  assert (stdenv.isLinux && !(stdenv ? cross)) -> alsaSupport || pulseaudioSupport;
  
  assert openglSupport -> (mesa != null && x11Support);
  assert x11Support -> (xlibsWrapper != null && xorg != null);
  assert alsaSupport -> alsaLib != null;
  assert pulseaudioSupport -> libpulseaudio != null;
  
  let
    inherit (stdenv.lib) optional optionals;
  in
  stdenv.mkDerivation rec {
    version = "1.2.15";
  
negative.code:     "--enable-rpath"
      "--disable-pulseaudio-shared"
      "--disable-osmesa-shared"
      "--with-alsa-prefix=${alsa-lib}/lib"
    ];
  
    patches = [
      # Fix window resizing issues, e.g. for xmonad
  