{
 "app_id": "io.github.cosmic_utils.camera",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.cosmic_utils.camera/master/io.github.cosmic_utils.camera.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0:ro",
  "--filesystem=xdg-pictures",
  "--filesystem=xdg-videos",
  "--filesystem=xdg-config/cosmic",
  "--filesystem=/run/udev:ro",
  "--talk-name=com.system76.CosmicSettingsDaemon.*",
  "--talk-name=com.system76.CosmicSettingsDaemon",
  "--talk-name=org.freedesktop.FileManager1",
  "--system-talk-name=org.freedesktop.NetworkManager"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-17T16:10:45.056549+00:00",
 "manifest": {
  "app-id": "io.github.cosmic_utils.camera",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable",
   "org.freedesktop.Sdk.Extension.llvm22"
  ],
  "base": "com.system76.Cosmic.BaseApp",
  "base-version": "stable",
  "command": "camera",
  "finish-args": [
   "--socket=wayland",
   "--share=ipc",
   "--socket=fallback-x11",
   "--device=all",
   "--filesystem=xdg-pictures:rw",
   "--filesystem=xdg-videos:rw",
   "--filesystem=xdg-config/cosmic:rw",
   "--filesystem=xdg-run/pipewire-0:ro",
   "--socket=pulseaudio",
   "--filesystem=/run/udev:ro",
   "--talk-name=com.system76.CosmicSettingsDaemon",
   "--talk-name=com.system76.CosmicSettingsDaemon.*",
   "--talk-name=org.freedesktop.FileManager1",
   "--system-talk-name=org.freedesktop.NetworkManager"
  ],
  "modules": [
   {
    "name": "python3-flit-core",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-build-isolation --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/69/59/b6fc2188dfc7ea4f936cd12b49d707f66a1cb7a1d2c16172963534db741b/flit_core-3.12.0.tar.gz",
      "sha256": "18f63100d6f94385c6ed57a72073443e1a71a4acb4339491615d0f16d6ff01b2"
     }
    ]
   },
   {
    "name": "python3-jinja2",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-build-isolation --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/df/bf/f7da0350254c0ed7c72f3e33cef02e048281fec7ecec5f032d4aac52226b/jinja2-3.1.6.tar.gz",
      "sha256": "0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d"
     }
    ]
   },
   {
    "name": "python3-pyyaml",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-build-isolation --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz",
      "sha256": "d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f"
     }
    ]
   },
   {
    "name": "python3-ply",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-build-isolation --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/e5/69/882ee5c9d017149285cab114ebeab373308ef0f874fcdac9beb90e0ac4da/ply-3.11.tar.gz",
      "sha256": "00c7c1aaa88358b9c765b6d3000c6eec0ba42abca5351b095321aef446081da3"
     }
    ]
   },
   {
    "name": "libyaml",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz",
      "sha256": "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4"
     }
    ]
   },
   {
    "name": "nlohmann-json",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DJSON_BuildTests=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/nlohmann/json.git",
      "tag": "v3.12.0",
      "commit": "65ee68451d8eb2b5f3a30b410476ab83deb3289b"
     }
    ]
   },
   {
    "name": "libpisp",
    "buildsystem": "meson",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/raspberrypi/libpisp.git",
      "tag": "v1.3.0",
      "commit": "9ba67e6680f03f31f2b1741a53e8fd549be82cbe"
     }
    ]
   },
   {
    "name": "libcamera",
    "buildsystem": "meson",
    "config-opts": [
     "-Dstrip=true",
     "-Dcam=disabled",
     "-Dqcam=disabled",
     "-Dgstreamer=disabled",
     "-Dtracing=disabled",
     "-Dpycamera=disabled",
     "-Dlc-compliance=disabled",
     "-Ddocumentation=disabled",
     "-Dtest=false"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://git.libcamera.org/libcamera/libcamera.git",
      "tag": "v0.7.2",
      "commit": "191e202178f02430b5942397c70d215cdd2056fa"
     },
     {
      "type": "git",
      "url": "https://chromium.googlesource.com/libyuv/libyuv.git",
      "commit": "500f45652c459cfccd20f83f297eb66cb7b015cb",
      "dest": "subprojects/libyuv"
     }
    ]
   },
   {
    "name": "camera",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/camera/cargo",
      "CARGO_TARGET_DIR": "/run/build/camera/target",
      "LIBCLANG_PATH": "/usr/lib/sdk/llvm22/lib",
      "BINDGEN_EXTRA_CLANG_ARGS": "-I/usr/lib/sdk/llvm22/lib/clang/22/include",
      "PKG_CONFIG_PATH": "/app/lib64/pkgconfig:/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
     }
    },
    "build-commands": [
     "if [ -f .flatpak-version ]; then\n  export CAMERA_VERSION=$(cat .flatpak-version)\nfi\ncargo --offline fetch --manifest-path Cargo.toml --verbose\ncargo --offline build --release --verbose\n",
     "install -Dm755 target/release/camera -t /app/bin/",
     "install -Dm644 resources/io.github.cosmic_utils.camera.desktop -t /app/share/applications/",
     "install -Dm644 resources/icons/hicolor/scalable/apps/io.github.cosmic_utils.camera.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 resources/icons/hicolor/16x16/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/16x16/apps/",
     "install -Dm644 resources/icons/hicolor/24x24/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/24x24/apps/",
     "install -Dm644 resources/icons/hicolor/32x32/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/32x32/apps/",
     "install -Dm644 resources/icons/hicolor/48x48/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/48x48/apps/",
     "install -Dm644 resources/icons/hicolor/64x64/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/64x64/apps/",
     "install -Dm644 resources/icons/hicolor/128x128/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/128x128/apps/",
     "install -Dm644 resources/icons/hicolor/256x256/apps/io.github.cosmic_utils.camera.png -t /app/share/icons/hicolor/256x256/apps/",
     "install -Dm644 resources/io.github.cosmic_utils.camera.metainfo.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/cosmic-utils/cosmic-ext-camera.git",
      "tag": "v1.3.6",
      "commit": "7b3670b7aeccb7b76ad0731f6172f93d1b773e88",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "is-main-source": true
      }
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}