gst_all_1.gst-plugins-bad: fix build on Darwin

This commit is contained in:
Jan Tojnar 2021-04-27 21:26:52 +02:00
parent 587953e2db
commit c05d8ea394
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,6 +1,7 @@
{ lib { lib
, stdenv , stdenv
, fetchurl , fetchurl
, fetchpatch
, meson , meson
, ninja , ninja
, gettext , gettext
@ -103,6 +104,15 @@ stdenv.mkDerivation rec {
patches = [ patches = [
# Use pkgconfig to inject the includedirs # Use pkgconfig to inject the includedirs
./fix_pkgconfig_includedir.patch ./fix_pkgconfig_includedir.patch
] ++ lib.optionals stdenv.isDarwin [
# Fix “error: cannot initialize a parameter of type 'unsigned long *' with an rvalue of type 'typename std::remove_reference<decltype(*(&opencv_dilate_erode_type))>::type *' (aka 'volatile unsigned long *')” on Darwin.
(fetchpatch {
url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/commit/640a65bf966df065d41a511e2d76d1f26a2e770c.patch";
sha256 = "E5pig+qEfR58Jticr6ydFxZOhM3ZJ8zgrf5K4BdiB/Y=";
includes = [
"ext/opencv/gstcvdilateerode.cpp"
];
})
]; ];
nativeBuildInputs = [ nativeBuildInputs = [