anchor.diff: -{ lib, stdenv, fetchFromGitHub, fetchsvn, cmake, pkg-config, makeWrapper
  -, SDL2, glew, openal, libvorbis, libogg, curl, freetype, bluez, libjpeg, libpng, enet, harfbuzz
  -, mcpp, wiiuse, angelscript
  +{ lib
  +, stdenv
  +, fetchFromGitHub
  +, fetchpatch
  +, fetchsvn
  +, cmake
  +, pkg-config
  +, makeWrapper
  +, SDL2
  +, glew
  +, openal
  +, libvorbis
  +, libogg
  +, curl
  +, freetype
  +, bluez
  +, libjpeg
  +, libpng
  +, enet
  +, harfbuzz
  +, mcpp
  +, wiiuse
  +, angelscript
   }:
  -
   let
     dir = "stk-code";
     assets = fetchsvn {
  -    url    = "https://svn.code.sf.net/p/supertuxkart/code/stk-assets";
  -    rev    = "18218";
  +    url = "https://svn.code.sf.net/p/supertuxkart/code/stk-assets";
  +    rev = "18218";
       sha256 = "11iv3cqzvbjg33zz5i5gkl2syn6mlw9wqv0jc7h36vjnjqjv17xw";
  -    name   = "stk-assets";
  +    name = "stk-assets";
     };
   
     # List of bundled libraries in stk-code/lib to keep
  
positive.code:     # Not packaged to this date
      "sheenbidi"
    ];
  in stdenv.mkDerivation rec {
  
    pname = "supertuxkart";
    version = "1.2";
  
    src = fetchFromGitHub {
      owner  = "supertuxkart";
      repo   = "stk-code";
      rev    = version;
      sha256 = "1f98whk0v45jgwcsbdsb1qfambvrnbbgwq0w28kjz4278hinwzq6";
      name   = dir;
    };
  
    # Deletes all bundled libs in stk-code/lib except those
    # That couldn't be replaced with system packages
  
negative.code:   nativeBuildInputs = [ cmake pkg-config makeWrapper ];
  
    buildInputs = [
      SDL2
      glew
      openal
      libvorbis
      libogg
      freetype
      curl
      bluez
      libjpeg
      libpng
      enet
      harfbuzz
      mcpp
      wiiuse
      angelscript
    ];
  
    cmakeFlags = [
      "-DBUILD_RECORDER=OFF" # libopenglrecorder is not in nixpkgs
      "-DUSE_SYSTEM_ANGELSCRIPT=OFF" # doesn't work with 2.31.2 or 2.32.0
      "-DCHECK_ASSETS=OFF"
      "-DUSE_SYSTEM_WIIUSE=ON"
  