anchor.diff: -{ lib, stdenv, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg_3
  -, boost, cmake, SDL2, unshield, openal, libXt, pkg-config }:
  +{ lib
  +, mkDerivation
  +, fetchFromGitHub
  +, cmake
  +, pkg-config
  +, openscenegraph
  +, mygui
  +, bullet
  +, ffmpeg
  +, boost
  +, SDL2
  +, unshield
  +, openal
  +, libXt
  +}:
   
   let
     openscenegraph_ = openscenegraph.overrideDerivation (self: {
  
positive.code:     description = "An unofficial open source engine reimplementation of the game Morrowind";
      homepage = "http://openmw.org";
      license = licenses.gpl3Plus;
      platforms = platforms.linux;
      maintainers = with maintainers; [ abbradar ];
    };
  }
  
negative.code:   };
  
    nativeBuildInputs = [ cmake pkg-config ];
  
    buildInputs = [
      SDL2
      boost
      bullet
      ffmpeg
      libXt
      mygui
      openal
      openscenegraph_
      unshield
    ];
  
    cmakeFlags = [
      "-DDESIRED_QT_VERSION:INT=5"
      # as of 0.46, openmw is broken with GLVND
      "-DOpenGL_GL_PREFERENCE=LEGACY"
    ];
  
    dontWrapQtApps = true;
  