{
 "app_id": "net.redeclipse.RedEclipse",
 "source_url": "https://raw.githubusercontent.com/flathub/net.redeclipse.RedEclipse/master/net.redeclipse.RedEclipse.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:13:42.311103+00:00",
 "manifest": {
  "id": "net.redeclipse.RedEclipse",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "redeclipse",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--persist=.redeclipse"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_image.json",
   {
    "name": "redeclipse",
    "no-autogen": true,
    "no-make-install": true,
    "build-options": {
     "cflags": "-O3 -fomit-frame-pointer",
     "cflags-override": true,
     "cxxflags": "-O3 -fomit-frame-pointer -ffast-math -fno-finite-math-only",
     "cxxflags-override": true
    },
    "config-opts": [
     "-DWANT_DISCORD=0",
     "-DWANT_STEAM=0"
    ],
    "subdir": "src",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/redeclipse/base/releases/download/v2.0.0/redeclipse_2.0.0_nix.tar.bz2",
      "sha256": "b15c14214e4b86c232828b39d3531fa9217b41bc695892f10166aef746387190",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8261,
       "stable-only": true,
       "url-template": "https://github.com/redeclipse/base/releases/download/v$version/redeclipse_$version_nix.tar.bz2",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "net.redeclipse.RedEclipse.appdata.xml"
     },
     {
      "type": "file",
      "path": "redeclipse.sh"
     },
     {
      "type": "file",
      "path": "redeclipse_server.sh"
     },
     {
      "type": "file",
      "path": "genkey.sh"
     }
    ],
    "post-install": [
     "install -Dm755 ../redeclipse.sh /app/bin/redeclipse",
     "install -Dm755 ../redeclipse_server.sh /app/bin/redeclipse_server",
     "install -Dm755 ../genkey.sh /app/bin/genkey",
     "install -Dm755 redeclipse_linux /app/share/redeclipse/redeclipse",
     "install -Dm755 redeclipse_server_linux /app/share/redeclipse/redeclipse_server",
     "install -Dm755 genkey_linux /app/share/redeclipse/genkey",
     "cp -a ../config ../data /app/share/redeclipse",
     "install -Dm644 ../net.redeclipse.RedEclipse.appdata.xml /app/share/appdata/net.redeclipse.RedEclipse.appdata.xml",
     "install -Dm644 ../src/install/nix/redeclipse.desktop.am /app/share/applications/net.redeclipse.RedEclipse.desktop",
     "install -Dm644 ../src/install/nix/redeclipse_x128.png /app/share/icons/hicolor/128x128/apps/net.redeclipse.RedEclipse.png",
     "desktop-file-edit --set-icon=net.redeclipse.RedEclipse --set-key=Exec --set-value=redeclipse /app/share/applications/net.redeclipse.RedEclipse.desktop"
    ]
   }
  ]
 }
}