{
 "app_id": "com.github.nexusopen.NexusOpen",
 "source_url": "https://raw.githubusercontent.com/mantonx/nexus-open/main/packaging/flatpak/com.github.nexusopen.NexusOpen.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "23.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--device=all",
  "--share=network",
  "--filesystem=xdg-config/nexus-open:create",
  "--filesystem=/sys:ro",
  "--filesystem=/proc:ro",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=session-bus",
  "--system-talk-name=org.freedesktop.systemd1"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-20T13:05:57.861783+00:00",
 "manifest": {
  "app-id": "com.github.nexusopen.NexusOpen",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "23.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.golang"
  ],
  "command": "nexus-open",
  "finish-args": [
   "--device=all",
   "--share=network",
   "--filesystem=xdg-config/nexus-open:create",
   "--filesystem=/sys:ro",
   "--filesystem=/proc:ro",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=session-bus",
   "--system-talk-name=org.freedesktop.systemd1"
  ],
  "modules": [
   {
    "name": "libayatana-appindicator",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DENABLE_BINDINGS_MONO=NO",
     "-DENABLE_BINDINGS_VALA=NO"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/AyatanaIndicators/libayatana-appindicator/archive/0.5.93.tar.gz",
      "sha256": "b6e98799f9b54b04d9e59c94f628e2e4c9c8f6f54e6b7621c79aa0ad312c0586"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "*.la"
    ]
   },
   {
    "name": "nexus-open",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/golang/bin",
     "env": {
      "GOBIN": "/app/bin",
      "GOROOT": "/usr/lib/sdk/golang",
      "CGO_ENABLED": "1"
     }
    },
    "build-commands": [
     ". /usr/lib/sdk/golang/enable.sh\ngo build -v -o nexus-open \\\n  -ldflags \"-X main.version=1.0.0\" \\\n  ./cmd/nexus-open\n",
     "install -Dm755 nexus-open /app/bin/nexus-open",
     "install -Dm644 packaging/desktop/nexus-open.desktop /app/share/applications/com.github.nexusopen.NexusOpen.desktop",
     "if [ -f packaging/icons/256.png ]; then\n  install -Dm644 packaging/icons/256.png \\\n    /app/share/icons/hicolor/256x256/apps/com.github.nexusopen.NexusOpen.png\nfi\n",
     "install -Dm644 packaging/flatpak/com.github.nexusopen.NexusOpen.metainfo.xml /app/share/metainfo/com.github.nexusopen.NexusOpen.metainfo.xml",
     "install -Dm644 packaging/udev/99-corsair-nexus.rules /app/share/nexus-open/99-corsair-nexus.rules"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/mantonx/nexus-open.git",
      "tag": "v1.0.0"
     }
    ]
   }
  ]
 }
}