Skip to content

Commit

Permalink
Merge pull request #217085 from lopsided98/gstreamer-rpicamsrc
Browse files Browse the repository at this point in the history
gst_all_1.gst-plugins-good: fix building rpicamsrc
  • Loading branch information
lilyinstarlight authored Jul 27, 2023
2 parents d044400 + d6fe182 commit 78faafa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/development/libraries/gstreamer/good/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 78faafa

Please sign in to comment.