Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

gst_all_1.gst-plugins-bad: make openh264 optional

This fixes building gst-plugins-bad for RISC-V, where openh264 is
unavailable.

+4 -1
+4 -1
pkgs/development/libraries/gstreamer/bad/default.nix
··· 59 59 , neon 60 60 , openal 61 61 , openexr_3 62 + , openh264Support ? lib.meta.availableOn stdenv.hostPlatform openh264 62 63 , openh264 63 64 , libopenmpt 64 65 , pango ··· 175 176 neon 176 177 openal 177 178 openexr_3 178 - openh264 179 179 rtmpdump 180 180 pango 181 181 soundtouch ··· 211 211 bluez 212 212 ] ++ lib.optionals microdnsSupport [ 213 213 libmicrodns 214 + ] ++ lib.optionals openh264Support [ 215 + openh264 214 216 ] ++ lib.optionals (gst-plugins-base.waylandEnabled && stdenv.isLinux) [ 215 217 libva # vaapi requires libva -> libdrm -> libpciaccess, which is Linux-only in nixpkgs 216 218 wayland ··· 300 302 "-Daja=disabled" # should pass libajantv2 via aja-sdk-dir instead 301 303 "-Dmicrodns=${if microdnsSupport then "enabled" else "disabled"}" 302 304 "-Dbluez=${if bluezSupport then "enabled" else "disabled"}" 305 + (lib.mesonEnable "openh264" openh264Support) 303 306 (lib.mesonEnable "doc" enableDocumentation) 304 307 ] 305 308 ++ lib.optionals (!stdenv.isLinux) [