app-id: org.particleviewer.ParticleViewer runtime: org.freedesktop.Platform runtime-version: '24.08' sdk: org.freedesktop.Sdk command: Viewer finish-args: # Graphics access # --device=all is required for NVIDIA proprietary drivers: --device=dri exposes # the DRM nodes but not the NVIDIA userspace driver libraries, causing DRI3 probe # failures ("failed to load driver: nvidia-drm"). --device=all exposes the full # /dev/dri/, /dev/nvidia* set so the proprietary GLX/EGL path works. # NOTE: users also need the matching NVIDIA GL extension installed: # flatpak install flathub org.freedesktop.Platform.GL.nvidia-//24.08 - --device=all - --socket=x11 - --socket=wayland - --share=ipc # File system access for loading particle files # home: read-write access to ~ for writing window.cfg # host:ro: imgui file dialog browses the filesystem directly; the FileChooser # portal is not used. host:ro subsumes xdg-documents and xdg-download. - --filesystem=home - --filesystem=host:ro modules: # GLM (header-only library) - name: glm buildsystem: cmake-ninja builddir: true config-opts: - -DCMAKE_BUILD_TYPE=Release - -DGLM_TEST_ENABLE=OFF sources: - type: archive url: https://github.com/g-truc/glm/archive/refs/tags/1.0.1.tar.gz sha256: 9f3174561fd26904b23f0db5e560971cbf9b3cbda0b280f04d5c379d03bf234c # SDL3 built as a standalone module so the Freedesktop SDK's pkg-config paths # are inherited and X11/Wayland backends are detected and enabled correctly. # When SDL3 is a FetchContent sub-build of the main CMakeLists, pkg-config is # not resolved and SDL_X11/SDL_WAYLAND come out OFF, leaving no display driver. - name: sdl3 buildsystem: cmake-ninja builddir: true config-opts: - -DCMAKE_BUILD_TYPE=Release - -DSDL_SHARED=OFF - -DSDL_STATIC=ON - -DSDL_TEST_LIBRARY=OFF - -DSDL_TESTS=OFF - -DSDL_X11=ON - -DSDL_WAYLAND=ON sources: - type: git url: https://github.com/libsdl-org/SDL.git tag: release-3.2.6 # Particle Viewer application - name: particle-viewer buildsystem: cmake-ninja builddir: true config-opts: - -DCMAKE_BUILD_TYPE=Release - -DBUILD_TESTS=OFF - -DFETCHCONTENT_FULLY_DISCONNECTED=ON sources: - type: dir path: .. - type: git url: https://github.com/ocornut/imgui.git tag: v1.91.6 dest: _deps_imgui