anchor.diff:    };
   
     nativeBuildInputs = [ cmake pkg-config ];
  -  buildInputs = [ boost ffmpeg_3 bullet mygui openscenegraph_ SDL2 unshield openal libXt qtbase ];
  +
  +  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;
  
positive.code: { lib, stdenv, fetchFromGitHub, qtbase, openscenegraph, mygui, bullet, ffmpeg_3
  , boost, cmake, SDL2, unshield, openal, libXt, pkg-config }:
  
  let
    openscenegraph_ = openscenegraph.overrideDerivation (self: {
  
negative.code:       sha256 = "0d74hijzmj82nx3jkv5qmr3pkgvplra0b8fbjx1y3vmzxamb0axd";
      };
    });
  
  in
  mkDerivation rec {
    version = "0.46.0";
    pname = "openmw";
  
  