···105105 patches = [
106106 # Use pkgconfig to inject the includedirs
107107 ./fix_pkgconfig_includedir.patch
108108- ] ++ lib.optionals stdenv.isDarwin [
109108 # 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.
110109 (fetchpatch {
111110 url = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/commit/640a65bf966df065d41a511e2d76d1f26a2e770c.patch";