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:
commit
78faafa6e6
1 changed files with 7 additions and 3 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue