diff --git a/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json b/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json index 6d754f19..5134b73f 100644 --- a/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json +++ b/pkgs/flatpak/com.github.rafostar.Clapper-nightly.json @@ -3,6 +3,10 @@ "runtime": "org.gnome.Platform", "runtime-version": "master", "sdk": "org.gnome.Sdk", + "sdk-extensions": [ + "org.freedesktop.Sdk.Extension.rust-nightly", + "org.freedesktop.Sdk.Extension.llvm13" + ], "command": "com.github.rafostar.Clapper", "finish-args": [ "--share=ipc", @@ -19,6 +23,10 @@ "--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0", "--env=GST_VAAPI_ALL_DRIVERS=1" ], + "build-options": { + "append-path": "/usr/lib/sdk/rust-nightly/bin:/usr/lib/sdk/llvm13/bin", + "prepend-ld-library-path": "/usr/lib/sdk/llvm13/lib" + }, "modules": [ "flathub/shared-modules/gudev/gudev.json", "flathub/lib/libsass.json", @@ -34,6 +42,7 @@ "flathub/lib/ffmpeg.json", "testing/libsoup3.json", "testing/gstreamer.json", + "testing/gst-plugins-rs.json", "testing/gtuber.json", { "name": "clapper", diff --git a/pkgs/flatpak/testing/gst-plugins-rs.json b/pkgs/flatpak/testing/gst-plugins-rs.json new file mode 100644 index 00000000..d4430b51 --- /dev/null +++ b/pkgs/flatpak/testing/gst-plugins-rs.json @@ -0,0 +1,23 @@ +{ + "name": "gst-plugins-rs", + "buildsystem": "simple", + "build-options": { + "build-args": [ + "--share=network" + ], + "env": { + "CARGO_HOME": "/run/build/gst-plugins-rs/cargo" + } + }, + "sources": [ + { + "type": "git", + "url": "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git", + "branch": "main" + } + ], + "build-commands": [ + "cargo install cargo-c", + "cargo cinstall --prefix=/app -p gst-plugin-dav1d" + ] +}