mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 03:23:17 +00:00
gst_all_1.gst-plugins-bad: add opencvSupport option
gst-plugins-bad is used by a lot of packages, and opencv has `enableCuda` option. Forcing people to only use opencv when necessary reduces rebuild size when `config.cudaSupport = true`
This commit is contained in:
parent
1f49db7743
commit
42abe23c13
@ -14,6 +14,8 @@
|
||||
, enableZbar ? false
|
||||
, faacSupport ? false
|
||||
, faac
|
||||
, opencvSupport ? false
|
||||
, opencv4
|
||||
, faad2
|
||||
, ldacbt
|
||||
, libass
|
||||
@ -54,7 +56,6 @@
|
||||
, libusb1
|
||||
, neon
|
||||
, openal
|
||||
, opencv4
|
||||
, openexr_3
|
||||
, openh264
|
||||
, libopenmpt
|
||||
@ -171,7 +172,6 @@ stdenv.mkDerivation rec {
|
||||
libusb1
|
||||
neon
|
||||
openal
|
||||
opencv4
|
||||
openexr_3
|
||||
openh264
|
||||
rtmpdump
|
||||
@ -192,6 +192,8 @@ stdenv.mkDerivation rec {
|
||||
libfreeaptx
|
||||
zxing-cpp
|
||||
usrsctp
|
||||
] ++ lib.optionals opencvSupport [
|
||||
opencv4
|
||||
] ++ lib.optionals enableZbar [
|
||||
zbar
|
||||
] ++ lib.optionals faacSupport [
|
||||
@ -292,6 +294,7 @@ stdenv.mkDerivation rec {
|
||||
"-Dgs=disabled" # depends on `google-cloud-cpp`
|
||||
"-Donnx=disabled" # depends on `libonnxruntime` not packaged in nixpkgs as of writing
|
||||
"-Dopenaptx=enabled" # since gstreamer-1.20.1 `libfreeaptx` is supported for circumventing the dubious license conflict with `libopenaptx`
|
||||
"-Dopencv=${if opencvSupport then "enabled" else "disabled"}" # Reduces rebuild size when `config.cudaSupport = true`
|
||||
"-Dmicrodns=${if microdnsSupport then "enabled" else "disabled"}"
|
||||
"-Dbluez=${if bluezSupport then "enabled" else "disabled"}"
|
||||
(lib.mesonEnable "doc" enableDocumentation)
|
||||
|
Loading…
Reference in New Issue
Block a user