anchor.diff:        configureFlags = configureFlagsFun { alsaLib = alsaLib.crossDrv; };
     };
   
  +  postInstall = ''
  +    rm $out/lib/*.a
  +  '';
  +
     passthru = {inherit openglSupport;};
   
     meta = {
       description = "A cross-platform multimedia library";
       homepage = http://www.libsdl.org/;
  +    license = stdenv.lib.licenses.zlib;
  +    platforms = stdenv.lib.platforms.linux;
  +    maintainers = [ stdenv.lib.maintainers.page ];
     };
   }
  
positive.code:     stdenv.lib.optional openglSupport [ mesa ] ++
      stdenv.lib.optional alsaSupport alsaLib;
  
    # XXX: By default, SDL wants to dlopen() PulseAudio, in which case
    # we must arrange to add it to its RPATH; however, `patchelf' seems
    # to fail at doing this, hence `--disable-pulseaudio-shared'.
  
negative.code: assert pulseaudioSupport -> pulseaudio != null;
  
  let
    configureFlagsFun = attrs: ''
          --disable-oss --disable-x11-shared
          --disable-pulseaudio-shared --disable-alsa-shared
          ${if alsaSupport then "--with-alsa-prefix=${attrs.alsaLib}/lib" else ""}
        '';
  