{
 "app_id": "com.moonlight_stream.Moonlight",
 "source_url": "https://raw.githubusercontent.com/flathub/com.moonlight_stream.Moonlight/master/com.moonlight_stream.Moonlight.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=host-os:ro",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=xdg-run/gamescope-0",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--unset-env=LIBVA_DRIVER_NAME",
  "--unset-env=LIBVA_DRIVERS_PATH"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:08:22.752423+00:00",
 "manifest": {
  "app-id": "com.moonlight_stream.Moonlight",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "moonlight",
  "rename-icon": "moonlight",
  "finish-args": [
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=ipc",
   "--socket=pulseaudio",
   "--device=all",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--env=IGNORE_RFI_LATENCY_BUG=1",
   "--env=QT_QUICK_CONTROLS_STYLE=Material",
   "--env=LIBVA_DRIVER_NAME=",
   "--unset-env=LIBVA_DRIVER_NAME",
   "--env=LIBVA_DRIVERS_PATH=",
   "--unset-env=LIBVA_DRIVERS_PATH",
   "--filesystem=xdg-run/gamescope-0",
   "--filesystem=host-os:ro"
  ],
  "cleanup": [
   "/include",
   "*.a",
   "/share/ffmpeg"
  ],
  "modules": [
   {
    "name": "libplacebo",
    "buildsystem": "meson",
    "build-options": {
     "config-opts": [
      "-Ddemos=false",
      "-Dvulkan=enabled",
      "-Dopengl=disabled",
      "-Dshaderc=enabled"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/haasn/libplacebo.git",
      "commit": "4d82c6898551068d4ae6a6b5538efcddc2c7cf64"
     },
     {
      "type": "patch",
      "path": "libplacebo-disable-internally-synchronized-queues.patch"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "libdecor",
    "buildsystem": "meson",
    "build-options": {
     "config-opts": [
      "-Ddemo=false"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.freedesktop.org/libdecor/libdecor.git",
      "tag": "0.2.2",
      "commit": "7807ae3480f5c6a37c5e8505d94af1e764aaf704"
     }
    ]
   },
   {
    "name": "SDL3",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "config-opts": [
      "-DSDL_ALSA=OFF",
      "-DSDL_RPATH=OFF",
      "-DSDL_KMSDRM=OFF",
      "-DSDL_INSTALL_DOCS=OFF",
      "-DSDL_TEST_LIBRARY=OFF",
      "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libsdl-org/SDL.git",
      "tag": "release-3.4.14",
      "commit": "147a8ee32dbf9ac02f3794964490687b6bbda1bc"
     }
    ]
   },
   {
    "name": "SDL2-compat",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "config-opts": [
      "-DSDL2COMPAT_TESTS=OFF"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libsdl-org/sdl2-compat.git",
      "tag": "release-2.32.70",
      "commit": "a53b6ad90ecd2d0ccfe01d5cfd2059793acf8c12"
     }
    ]
   },
   {
    "name": "SDL2_ttf",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "config-opts": [
      "-DSDL2TTF_VENDORED=ON",
      "-DSDL2TTF_SAMPLES=OFF"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/libsdl-org/SDL_ttf.git",
      "//": "branch: SDL2",
      "commit": "a883e490e30fb44a5336ea3dcb990c6982c5216f"
     }
    ]
   },
   {
    "name": "dav1d",
    "buildsystem": "meson",
    "config-opts": [
     "-Denable_tools=false",
     "-Denable_tests=false"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://code.videolan.org/videolan/dav1d.git",
      "tag": "1.5.4",
      "commit": "54706fc6bc0cdecab7e9593974a4039cc038fca7"
     }
    ]
   },
   {
    "name": "ffmpeg",
    "build-options": {
     "config-opts": [
      "--fatal-warnings",
      "--disable-stripping",
      "--enable-pic",
      "--enable-lto",
      "--enable-shared",
      "--disable-static",
      "--disable-all",
      "--enable-avcodec",
      "--enable-avformat",
      "--enable-swscale",
      "--enable-decoder=h264",
      "--enable-decoder=hevc",
      "--enable-decoder=av1",
      "--enable-hwaccel=h264_vaapi",
      "--enable-hwaccel=hevc_vaapi",
      "--enable-hwaccel=av1_vaapi",
      "--enable-hwaccel=h264_vdpau",
      "--enable-hwaccel=hevc_vdpau",
      "--enable-hwaccel=av1_vdpau",
      "--enable-libdrm",
      "--enable-hwaccel=h264_vulkan",
      "--enable-hwaccel=hevc_vulkan",
      "--enable-hwaccel=av1_vulkan",
      "--enable-decoder=h264_v4l2m2m",
      "--enable-decoder=hevc_v4l2m2m",
      "--enable-libdav1d",
      "--enable-decoder=libdav1d",
      "--enable-v4l2-request",
      "--enable-hwaccel=h264_v4l2request",
      "--enable-hwaccel=hevc_v4l2request",
      "--enable-hwaccel=av1_v4l2request"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/cgutman/FFmpeg.git",
      "//": "branch: moonlight_9.0_r1",
      "commit": "d17de7e33f1332cc2fb3f5afab9ed4f29699c5a0"
     }
    ]
   },
   {
    "name": "gamescope-wsi",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 VkLayer_FROG_gamescope_wsi.x86_64.json /app/share/vulkan/implicit_layer.d/VkLayer_FROG_gamescope_wsi.x86_64.json"
    ],
    "only-arches": [
     "x86_64"
    ],
    "sources": [
     {
      "type": "file",
      "path": "VkLayer_FROG_gamescope_wsi.x86_64.json"
     }
    ]
   },
   {
    "name": "moonlight",
    "buildsystem": "qmake",
    "config-opts": [
     "QMAKE_RPATHDIR=/app/lib"
    ],
    "build-options": {
     "config-opts": [
      "CONFIG+=disable-cuda"
     ],
     "arch": {
      "x86_64": {
       "config-opts": [
        "CONFIG+=disable-libdrm"
       ]
      }
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/moonlight-stream/moonlight-qt.git",
      "disable-shallow-clone": true,
      "tag": "v6.1.0",
      "commit": "f786e94c7b2f943e24e65d7d74deb539b827fc84"
     },
     {
      "type": "patch",
      "path": "0001-Fix-null-window-on-Qt-6.9.patch"
     },
     {
      "type": "patch",
      "path": "0002-Fix-tooltip-layout-with-Qt-6.9.patch"
     },
     {
      "type": "patch",
      "path": "0003-Fix-incorrect-toolbar-color-on-Qt-6.9.patch"
     },
     {
      "type": "patch",
      "path": "0004-Use-new-avcodec_get_supported_config-API-in-FFmpeg-7.patch"
     },
     {
      "type": "patch",
      "path": "0005-Use-new-Vulkan-queue-API-in-FFmpeg-7.1.patch"
     }
    ]
   }
  ]
 }
}