anchor.diff:      sha256 = "21a5fb5493c269cd3843789cb8598f952d4196e8bc71804b9bd5808b646542c6";
     };
   
  -  # Commented out things needed to build cl-release because of errors.
  -  #buildInputs = [ libX11 libXpm libXext xf86dgaproto libXxf86dga libXxf86vm mesa ];
  -  buildInputs = [ unzip SDL libjpeg ];
  +  buildInputs = [
  +    # required for both
  +    unzip libjpeg
  +    # glx
  +    libX11 mesa libXpm libXext libXxf86vm alsaLib
  +    # sdl
  +    SDL
  +  ];
   
     sourceRoot = "Xonotic/source/darkplaces";
   
  
positive.code:     mkdir -p "$out/bin"
      cp darkplaces-dedicated "$out/bin/xonotic-dedicated"
      cp darkplaces-sdl "$out/bin/xonotic-sdl"
      cd ../..
      mkdir -p "$out/share/xonotic"
      mv data "$out/share/xonotic"
    '';
  
    dontPatchELF = true;
  
negative.code: { stdenv, fetchurl
  , # required for both
    unzip, libjpeg, zlib, libvorbis, curl
  , # glx
    libX11, mesa, libXpm, libXext, libXxf86vm, alsaLib
  , # sdl
    SDL
  }:
  
  stdenv.mkDerivation rec {
    name = "xonotic-0.7.0";
  