anchor.diff:        libdbus = dbus.lib;
         inherit hwdata libX11;
       })
  +
  +    (fetchpatch {
  +      name = "allow-system-nlohmann-json.patch";
  +      url = "https://github.com/flightlessmango/MangoHud/commit/e1ffa0f85820abea44639438fca2152290c87ee8.patch";
  +      sha256 = "sha256-CaJb0RpXmNGCBidMXM39VJVLIXb6NbN5HXWkH/5Sfvo=";
  +    })
     ] ++ lib.optional (stdenv.hostPlatform.system == "x86_64-linux") [
       # Support 32bit OpenGL applications by appending the mangohud32
       # lib path to LD_LIBRARY_PATH.
  
positive.code:     wrapProgram "$out/bin/mangohud" \
        --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ addOpenGLRunpath.driverLink ]} \
        --prefix XDG_DATA_DIRS : "$out/share"
    '';
  
    meta = with lib; {
  
negative.code: , libXNVCtrl
  , wayland
  , spdlog
  , glew
  , glfw
  , nlohmann_json
  , xorg
  , addOpenGLRunpath
  , gamescopeSupport ? true # build mangoapp and mangohudctl
  }:
  
  let
  