Merge pull request #217085 from lopsided98/gstreamer-rpicamsrc

gst_all_1.gst-plugins-good: fix building rpicamsrc
This commit is contained in:
Lily Foster
2023-07-27 15:31:22 -04:00
committed by GitHub
@@ -45,7 +45,9 @@
, enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc
}:
assert raspiCameraSupport -> (stdenv.isLinux && stdenv.isAarch64);
# MMAL is not support on aarch64, see:
# https://github.com/raspberrypi/userland/issues/688
assert raspiCameraSupport -> (stdenv.isLinux && stdenv.isAarch32);
stdenv.mkDerivation rec {
pname = "gst-plugins-good";
@@ -156,9 +158,11 @@ stdenv.mkDerivation rec {
"-Dpulse=disabled" # TODO check if we can keep this enabled
"-Dv4l2-gudev=disabled" # Linux-only
"-Dv4l2=disabled" # Linux-only
] ++ lib.optionals (!raspiCameraSupport) [
] ++ (if raspiCameraSupport then [
"-Drpi-lib-dir=${libraspberrypi}/lib"
] else [
"-Drpicamsrc=disabled"
];
]);
postPatch = ''
patchShebangs \