{
 "app_id": "com.helix_editor.Helix",
 "source_url": "https://raw.githubusercontent.com/flathub/com.helix_editor.Helix/master/com.helix_editor.Helix.yml",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--filesystem=/var/tmp",
  "--filesystem=/tmp",
  "--filesystem=host",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:08:01.346107+00:00",
 "manifest": {
  "app-id": "com.helix_editor.Helix",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "hx",
  "rename-desktop-file": "Helix.desktop",
  "rename-icon": "helix",
  "rename-appdata-file": "Helix.appdata.xml",
  "finish-args": [
   "--filesystem=host",
   "--filesystem=/tmp",
   "--filesystem=/var/tmp",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--talk-name=org.freedesktop.Flatpak"
  ],
  "modules": [
   {
    "name": "wl-clipboard",
    "buildsystem": "meson",
    "config-opts": [
     "-Dzshcompletiondir=no",
     "-Dfishcompletiondir=no"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/bugaevc/wl-clipboard/archive/v2.3.0.tar.gz",
      "sha256": "b4dc560973f0cd74e02f817ffa2fd44ba645a4f1ea94b7b9614dacc9f895f402",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 49082,
       "url-template": "https://github.com/bugaevc/wl-clipboard/archive/v$version.tar.gz"
      }
     }
    ],
    "cleanup": [
     "/share/man",
     "/share/bash-completion"
    ]
   },
   {
    "name": "xclip",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/astrand/xclip/archive/0.13.tar.gz",
      "sha256": "ca5b8804e3c910a66423a882d79bf3c9450b875ac8528791fb60ec9de667f758"
     }
    ],
    "cleanup": [
     "/share/man",
     "/bin/xclip-*file"
    ],
    "modules": [
     {
      "name": "libXmu",
      "config-opts": [
       "--disable-static",
       "--disable-docs"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://www.x.org/releases/individual/lib/libXmu-1.1.3.tar.bz2",
        "sha256": "9c343225e7c3dc0904f2122b562278da5fed639b1b5e880d25111561bac5b731"
       }
      ],
      "cleanup": [
       "/include",
       "/lib/pkgconfig",
       "*.la"
      ]
     }
    ]
   },
   {
    "name": "hx",
    "buildsystem": "simple",
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml",
     "HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1 cargo --offline build --profile=opt",
     "install -Dm755 ./target/opt/hx -t /app/lib/helix",
     "mkdir -p /app/lib/helix/runtime",
     "cp -r ./runtime/themes /app/lib/helix/runtime/themes",
     "cp -r ./runtime/queries /app/lib/helix/runtime/queries",
     "cp ./runtime/tutor /app/lib/helix/runtime/tutor",
     "install -Dm644 ./contrib/Helix.desktop -t /app/share/applications",
     "install -Dm644 ./contrib/helix.png -t /app/share/icons/hicolor/256x256/apps",
     "install -Dm644 ./contrib/Helix.appdata.xml -t /app/share/metainfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/helix-editor/helix/archive/refs/tags/25.07.1.tar.gz",
      "sha256": "27c8bc3eba46bc7bab1e3629c6b28ff94882eeff17366b3ea69cd8ceffba7541"
     },
     {
      "type": "patch",
      "path": "./tree-sitter-go-template.patch"
     },
     "cargo-sources.json"
    ],
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/hx/cargo"
     }
    }
   },
   "grammars/grammars.yml",
   {
    "name": "wrapper",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/blt-r/ide-flatpak-wrapper/archive/46d5af265d43d82e03f12daa5877e796dd982f41.tar.gz",
      "sha256": "2ba61dca6cd1c3222ab3e28d0b9f32feda5602f70d0da7a8dc21b03c54332947"
     },
     {
      "type": "file",
      "path": "HELIX_FIRST_RUN.md"
     }
    ],
    "config-opts": [
     "-Deditor_binary=/app/lib/helix/hx",
     "-Dprogram_name=hx",
     "-Deditor_title=Helix",
     "-Dflagfile_prefix=flatpak-helix",
     "-Dfirst_run_template=./HELIX_FIRST_RUN.md",
     "-Ddefault_loglevel=0"
    ]
   }
  ]
 }
}