0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

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
commit 78faafa6e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 \