Skip to content

Commit

Permalink
Merge pull request #170188 from a-m-joseph/gstreamer-bluezSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Jun 5, 2022
2 parents a1bbd60 + 421ca6d commit 99cd957
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/development/libraries/gstreamer/bad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
, Foundation
, MediaToolbox
, enableGplPlugins ? true
, bluezSupport ? stdenv.isLinux
}:

stdenv.mkDerivation rec {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 99cd957

Please sign in to comment.