Skip to content

Commit

Permalink
Merge #223248: gst-plugins-base: enable graphene + gstgl
Browse files Browse the repository at this point in the history
on aarch64-darwin.  Merge into staging
  • Loading branch information
vcunat committed Apr 16, 2023
2 parents d4ae355 + 8bbb9ca commit 883780b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/libraries/gstreamer/bad/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
, VideoToolbox
, AudioToolbox
, AVFoundation
, Cocoa
, CoreMedia
, CoreVideo
, Foundation
Expand Down Expand Up @@ -233,6 +234,7 @@ stdenv.mkDerivation rec {
VideoToolbox
AudioToolbox
AVFoundation
Cocoa
CoreMedia
CoreVideo
Foundation
Expand Down
9 changes: 4 additions & 5 deletions pkgs/development/libraries/gstreamer/base/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
, gettext
, python3
, gstreamer
, graphene
, orc
, pango
, libtheora
Expand All @@ -27,10 +28,8 @@
, wayland-protocols
, enableAlsa ? stdenv.isLinux
, alsa-lib
# Enabling Cocoa seems to currently not work, giving compile
# errors. Suspected is that a newer version than clang
# is needed than 5.0 but it is not clear.
, enableCocoa ? false
# TODO: fix once x86_64-darwin sdk updated
, enableCocoa ? (stdenv.isDarwin && stdenv.isAarch64)
, Cocoa
, OpenGL
, enableGl ? (enableX11 || enableWayland || enableCocoa)
Expand Down Expand Up @@ -73,6 +72,7 @@ stdenv.mkDerivation (finalAttrs: {

buildInputs = [
gobject-introspection
graphene
orc
libtheora
libintl
Expand Down Expand Up @@ -105,7 +105,6 @@ stdenv.mkDerivation (finalAttrs: {
mesonFlags = [
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
"-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing
# See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices
"-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gstreamer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

gst-plugins-good = callPackage ./good { inherit Cocoa; };

gst-plugins-bad = callPackage ./bad { inherit AudioToolbox AVFoundation CoreMedia CoreVideo Foundation MediaToolbox VideoToolbox; };
gst-plugins-bad = callPackage ./bad { inherit AudioToolbox AVFoundation Cocoa CoreMedia CoreVideo Foundation MediaToolbox VideoToolbox; };

gst-plugins-ugly = callPackage ./ugly { inherit CoreFoundation DiskArbitration IOKit; };

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gtk/4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ stdenv.mkDerivation rec {
"-Dvulkan=enabled"
] ++ lib.optionals (!cupsSupport) [
"-Dprint-cups=disabled"
] ++ lib.optionals stdenv.isDarwin [
] ++ lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [
"-Dmedia-gstreamer=disabled" # requires gstreamer-gl
] ++ lib.optionals (!x11Support) [
"-Dx11-backend=false"
Expand Down

0 comments on commit 883780b

Please sign in to comment.