anchor.diff: -{ stdenv, fetchurl, fetchpatch, audiofile, libcap
  -, openglSupport ? false, mesa ? null
  -, alsaSupport ? true, alsaLib ? null
  -, x11Support ? true, xlibsWrapper ? null, xorg ? null
  -, pulseaudioSupport ? true, libpulseaudio ? null
  +{ stdenv
  +, fetchurl
  +, fetchpatch
  +
  +, alsa-lib
  +, audiofile
  +, libcap
  +, mesa
  +, pulseaudio_lib
  +, xlibsWrapper
  +, xorg
   }:
   
  -# 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;
  +  inherit (stdenv.lib)
  +    optional
  +    optionals;
   in
   stdenv.mkDerivation rec {
     version = "1.2.15";
  
positive.code:     "--enable-rpath"
      "--disable-pulseaudio-shared"
      "--disable-osmesa-shared"
    ] ++ stdenv.lib.optionals (stdenv ? cross) ([
      "--without-x"
    ] ++ stdenv.lib.optional alsaSupport "--with-alsa-prefix=${alsaLib}/lib");
  
    patches = [
      # Fix window resizing issues, e.g. for xmonad
  
negative.code:     })
    ];
  
    meta = with stdenv.lib; {
      description = "A cross-platform multimedia library";
      homepage    = http://www.libsdl.org/;
      maintainers = with maintainers; [ lovek323 ];
      platforms   = platforms.all;
      license     = licenses.lgpl21;
    };
  }
  