{
 "app_id": "org.hydrogenmusic.Hydrogen",
 "source_url": "https://raw.githubusercontent.com/flathub/org.hydrogenmusic.Hydrogen/master/org.hydrogenmusic.Hydrogen.json",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:15:16.413187+00:00",
 "manifest": {
  "app-id": "org.hydrogenmusic.Hydrogen",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "command": "hydrogen",
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--device=dri",
   "--env=QT_QPA_PLATFORM=xcb",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=home",
   "--env=TMPDIR=/var/tmp",
   "--env=LADSPA_PATH=/app/extensions/Plugins/ladspa:/app/lib/ladspa",
   "--env=ALSA_CONFIG_PATH="
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "ladspa",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "cleanup": [
   "/include",
   "/man",
   "/share/man",
   "/lib/pkgconfig",
   "*.la"
  ],
  "modules": [
   "shared-modules/linux-audio/lrdf.json",
   "shared-modules/linux-audio/lash.json",
   {
    "name": "portaudio",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "cleanup": [
     "/lib/cmake",
     "/share/doc"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/PortAudio/portaudio.git",
      "tag": "v19.7.0",
      "commit": "147dd722548358763a8b649b3e4b41dfffbcfbb6"
     }
    ]
   },
   {
    "name": "portmidi",
    "buildsystem": "cmake-ninja",
    "cleanup": [
     "/lib/cmake",
     "/lib/pkgconfig",
     "/include",
     "*.a",
     "*.la"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/PortMidi/portmidi.git",
      "tag": "v2.0.4",
      "commit": "b808babecdc5d05205467dab5c1006c5ac0fdfd4"
     }
    ]
   },
   "shared-modules/linux-audio/liblo.json",
   {
    "name": "vamp-plugin-sdk",
    "no-parallel-make": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://archive.org/download/vamp-plugin-sdk-2.8.0-source/vamp-plugin-sdk-2.8.0.tar.gz",
      "sha256": "dcc96ae894795822398789f251c2c7effa602fc60e9dd6c7a5c5d2e7a513526c"
     }
    ],
    "post-install": [
     "install -Dm644 -t /app/share/licenses/vamp-plugin-sdk COPYING"
    ],
    "cleanup": [
     "/bin",
     "/include",
     "/lib/pkgconfig",
     "*.a"
    ]
   },
   {
    "name": "rubberband",
    "build-options": {
     "env": {
      "Vamp_CFLAGS": " ",
      "Vamp_LIBS": " "
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "http://code.breakfastquay.com/attachments/download/34/rubberband-1.8.1.tar.bz2",
      "sha256": "ff0c63b0b5ce41f937a8a3bc560f27918c5fe0b90c6bc1cb70829b86ada82b75"
     }
    ],
    "post-install": [
     "install -Dm644 -t /app/share/licenses/rubberband COPYING"
    ],
    "cleanup": [
     "/share/ladspa",
     "*.a"
    ]
   },
   {
    "name": "hydrogen",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DWANT_QT6=ON",
     "-DWANT_DEBUG=OFF",
     "-DWANT_ALSA=ON",
     "-DWANT_PULSEAUDIO=ON",
     "-DWANT_JACK=ON",
     "-DWANT_LADSPA=ON",
     "-DWANT_LRDF=ON",
     "-DWANT_OSC=ON",
     "-DWANT_LASH=ON",
     "-DWANT_PORTAUDIO=ON",
     "-DWANT_PORTMIDI=ON",
     "-DWANT_RUBBERBAND=ON",
     "-DWANT_LIBARCHIVE=ON"
    ],
    "post-install": [
     "install -d /app/extensions/Plugins"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/hydrogen-music/hydrogen.git",
      "tag": "1.2.6",
      "commit": "be87f2decf36f0c86586801cc05c0482a8af9dd1"
     },
     {
      "type": "patch",
      "paths": [
       "patches/hydrogen-appstream.patch"
      ]
     }
    ]
   }
  ]
 }
}