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