gstreamer: add bluezSupport flag
This allows the option of compiling gstreamer (and packages depending upon it) without bluetooth support.
This commit is contained in:
parent
f529aef3dd
commit
421ca6d67b
|
@ -93,6 +93,7 @@
|
|||
, Foundation
|
||||
, MediaToolbox
|
||||
, enableGplPlugins ? true
|
||||
, bluezSupport ? stdenv.isLinux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -181,8 +182,9 @@ stdenv.mkDerivation rec {
|
|||
mjpegtools
|
||||
faad2
|
||||
x265
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
] ++ lib.optionals bluezSupport [
|
||||
bluez
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
libva # vaapi requires libva -> libdrm -> libpciaccess, which is Linux-only in nixpkgs
|
||||
wayland
|
||||
wayland-protocols
|
||||
|
@ -264,12 +266,12 @@ 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`
|
||||
"-Dbluez=${if bluezSupport then "enabled" else "disabled"}"
|
||||
]
|
||||
++ lib.optionals (!stdenv.isLinux) [
|
||||
"-Dva=disabled" # see comment on `libva` in `buildInputs`
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
"-Dbluez=disabled"
|
||||
"-Dchromaprint=disabled"
|
||||
"-Ddirectfb=disabled"
|
||||
"-Dflite=disabled"
|
||||
|
|
Loading…
Reference in a new issue