{
 "app_id": "io.github.bcpierce00.unison",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.bcpierce00.unison/master/io.github.bcpierce00.unison.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=ssh-auth",
  "--filesystem=home",
  "--filesystem=~/.var/app",
  "--filesystem=/run/media"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-17T16:10:40.328967+00:00",
 "manifest": {
  "app-id": "io.github.bcpierce00.unison",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "unison-gui",
  "finish-args": [
   "--filesystem=home",
   "--filesystem=~/.var/app",
   "--filesystem=/run/media",
   "--share=network",
   "--socket=ssh-auth",
   "--socket=wayland",
   "--share=ipc",
   "--socket=fallback-x11"
  ],
  "build-options": {
   "append-path": "/app/share/runtime/ocaml/bin",
   "env": {
    "OCAMLPATH": "/app/share/runtime/ocaml/lib"
   }
  },
  "cleanup": [
   "/share/runtime"
  ],
  "modules": [
   {
    "name": "ocaml",
    "buildsystem": "autotools",
    "config-opts": [
     "--prefix=/app/share/runtime/ocaml"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ocaml/ocaml/archive/refs/tags/5.2.0.tar.gz",
      "sha256": "48554abfd530fcdaa08f23f801b699e4f74c320ddf7d0bd56b0e8c24e55fc911"
     }
    ]
   },
   {
    "name": "dune",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ocaml/dune/archive/refs/tags/3.16.0.tar.gz",
      "sha256": "cf141fe2113d95faab9714bc3203f4665ba58c7e0c4450f9a719f1ba075cd214"
     },
     {
      "type": "patch",
      "path": "ocaml-dune-no-lwt.patch"
     }
    ],
    "build-commands": [
     "rm -fr otherlibs/dune-rpc-lwt dune-rpc-lwt.opam",
     "./configure --bindir=/app/share/runtime/ocaml/bin --sbindir=/app/share/runtime/ocaml/bin --libdir=/app/share/runtime/ocaml/lib/ocaml --docdir=/app/share/runtime/ocaml/share/doc --mandir=/app/share/runtime/ocaml/share/man --datadir=/app/share/runtime/ocaml/share/data --etcdir=/app/share/runtime/ocaml/etc",
     "make release",
     "./dune.exe build --verbose --release @install",
     "PREFIX=/app/share/runtime/ocaml make install",
     "dune install --prefix /app/share/runtime/ocaml"
    ]
   },
   {
    "name": "camlp-streams",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ocaml/camlp-streams",
      "tag": "v5.0.1",
      "commit": "567fa15f32192a6a7cd12e6c9e804fec43460126"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "dune build",
     "dune install --prefix /app/share/runtime/ocaml"
    ]
   },
   {
    "name": "ocaml-cairo",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Chris00/ocaml-cairo/releases/download/0.6.5/cairo2-0.6.5.tbz",
      "sha256": "25dc41c9436d9abcf56caad9a105944ff7346041b8cc6a2a654ab8848b657372"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "dune build -p cairo2 @install",
     "dune install -p cairo2 --prefix /app/share/runtime/ocaml"
    ]
   },
   {
    "name": "lablgtk",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/garrigue/lablgtk/releases/download/3.1.5/lablgtk3-3.1.5.tbz",
      "sha256": "d4821cdbecf3ae374f20317d63e43fe58030c3ba9657b51a2e83e652197e8eac"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "dune build -p lablgtk3",
     "dune install -p lablgtk3 --prefix /app/share/runtime/ocaml"
    ]
   },
   {
    "name": "unison",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/bcpierce00/unison.git",
      "tag": "v2.54.0",
      "commit": "b1a49141e7eb5334e31efcf4d08073c192d6c1ae"
     },
     {
      "type": "file",
      "path": "io.github.bcpierce00.unison.desktop"
     },
     {
      "type": "file",
      "path": "io.github.bcpierce00.unison.metainfo.xml"
     }
    ],
    "buildsystem": "simple",
    "build-commands": [
     "dune build -p unison",
     "install -Dm0755 -t ${FLATPAK_DEST}/bin _build/install/default/bin/unison",
     "dune build -p unison-gui",
     "install -Dm0755 -t ${FLATPAK_DEST}/bin _build/install/default/bin/unison-gui",
     "install -Dm0644 -t ${FLATPAK_DEST}/share/doc/unison LICENSE README.md NEWS.md",
     "install -Dm0644 icons/U.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/io.github.bcpierce00.unison.svg",
     "install -Dm0644 -t ${FLATPAK_DEST}/share/applications io.github.bcpierce00.unison.desktop",
     "install -Dm0644 -t ${FLATPAK_DEST}/share/metainfo io.github.bcpierce00.unison.metainfo.xml"
    ]
   }
  ]
 }
}