From c0a5bd3527f682f451d6f57b623ce280450e974d Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 14 Sep 2025 13:17:40 +0200 Subject: [PATCH] gst_all_1.gst-plugins-rs: fix build on exotic platforms --- pkgs/development/libraries/gstreamer/rs/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/gstreamer/rs/default.nix b/pkgs/development/libraries/gstreamer/rs/default.nix index af59a36e955a..77f69c552756 100644 --- a/pkgs/development/libraries/gstreamer/rs/default.nix +++ b/pkgs/development/libraries/gstreamer/rs/default.nix @@ -13,6 +13,7 @@ cargo-c, lld, nasm, + cmake, gstreamer, gst-plugins-base, gst-plugins-bad, @@ -199,6 +200,12 @@ stdenv.mkDerivation (finalAttrs: { cargo-c nasm ] + # aws-lc-rs has no pregenerated bindings for exotic platforms + # https://aws.github.io/aws-lc-rs/platform_support.html + ++ lib.optionals (!(stdenv.hostPlatform.isx86 || stdenv.hostPlatform.isAarch64)) [ + cmake + rustPlatform.bindgenHook + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ lld ]