opencv2: add Accelerate framework on darwin

Same as commit e4d2b6fced3; I didn't notice this version suffered
from it as well.  It's probably random/impurity anyway.
https://hydra.nixos.org/build/214981496
This commit is contained in:
Vladimír Čunát 2023-04-10 08:23:17 +02:00
parent 39f71c03bf
commit c6b639ec35
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@
, enableGStreamer ? false, gst_all_1
, enableEigen ? true, eigen
, enableUnfree ? false
, AVFoundation, Cocoa, QTKit
, AVFoundation, Cocoa, QTKit, Accelerate
}:
let
@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
++ lib.optional enableFfmpeg ffmpeg
++ lib.optionals enableGStreamer (with gst_all_1; [ gstreamer gst-plugins-base ])
++ lib.optional enableEigen eigen
++ lib.optionals stdenv.isDarwin [ AVFoundation Cocoa QTKit ]
++ lib.optionals stdenv.isDarwin [ AVFoundation Cocoa QTKit Accelerate ]
;
nativeBuildInputs = [ cmake pkg-config unzip ];

View file

@ -22871,7 +22871,7 @@ with pkgs;
openct = callPackage ../development/libraries/openct { };
opencv2 = callPackage ../development/libraries/opencv {
inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit;
inherit (darwin.apple_sdk.frameworks) AVFoundation Cocoa QTKit Accelerate;
ffmpeg = ffmpeg_4;
};