anchor.diff:  , curl3, SDL, SDL_image, libpng12, libjpeg62, libvorbis, libogg, openal, mesa
   , libX11, libXext, libXft, fontconfig, zlib }:
   
  -# TODO: add i686 support
  +assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
   
   stdenv.mkDerivation rec {
     name = "gsb-1.56.0";
  
positive.code:     ensureDir $out/libexec/positech/GSB/
      ensureDir $out/bin
  
      patchelf --interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" --set-rpath $libPath ./GSB.bin.x86_64
  
      cp -r * $out/libexec/positech/GSB/
      rm -rf $out/libexec/positech/GSB/lib64/
  
      #makeWrapper doesn't do cd. :(
  
      cat > $out/bin/GSB << EOF
      #!/bin/sh
      cd $out/libexec/positech/GSB
      exec ./GSB.bin.x86_64
      EOF
      chmod +x $out/bin/GSB
    '';
  
negative.code:     homepage = http://www.positech.co.uk/gratuitousspacebattles/index.html;
      license = [ "unfree" ];
      maintainers = with stdenv.lib.maintainers; [ jcumming ];
      platforms = [ "x86_64-linux" "i686-linux" ] ;
    };
  
  }
  