{
 "app_id": "com.nitrokey.nitrokey-app2",
 "source_url": "https://raw.githubusercontent.com/flathub/com.nitrokey.nitrokey-app2/master/com.nitrokey.nitrokey-app2.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=/run/udev:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:08:28.025840+00:00",
 "manifest": {
  "app-id": "com.nitrokey.nitrokey-app2",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "nitrokeyapp",
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": [
    "CARGO_NET_OFFLINE=true",
    "POETRY_INSTALLER_MAX_WORKERS=1",
    "HIDAPI_WITH_LIBUSB=0"
   ]
  },
  "cleanup-commands": [
   "find ${FLATPAK_DEST}/bin -type f | grep -v nitrokeyapp | xargs rm",
   "rm -rf ${FLATPAK_DEST}/bin/pyside6-{assistant,designer,linguist,lrelease,lupdate,qmllint}",
   "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/{assistant,designer,linguist,lrelease,lupdate,qmllint}",
   "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/{examples,Qt/resources}",
   "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/qml/QtQuick/Controls/{Imagine,Material,Universal,designer}",
   "rm -rf ${FLATPAK_DEST}/lib/python3.*/site-packages/PySide6/Qt/translations/{qtwebengine_locales,linguist*,assistant*,designer*,qtdeclarative*,qt_help*}"
  ],
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--device=all",
   "--share=network",
   "--filesystem=/run/udev:ro"
  ],
  "modules": [
   "generated/pypi-dependencies.json",
   {
    "name": "nkapp",
    "buildsystem": "simple",
    "build-commands": [
     "pip install --verbose --exists-action=i --no-index --find-links=\\\"file://${PWD}\\\" --prefix=${FLATPAK_DEST} . --no-build-isolation",
     "install -Dm644 meta/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 meta/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 meta/nk-app2.svg ${FLATPAK_DEST}/share/icons/hicolor/scaleable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 meta/nk-app2.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/Nitrokey/nitrokey-app2/archive/v2.7.1.tar.gz",
      "sha256": "8707423028f4bcfdb0ab4e1c04e1d1b17b33e6301159654c351ceeee82d45cec"
     }
    ]
   }
  ]
 }
}