From 63be0d9b2c79e6b9f35611fd68aa2b85d5b76baf Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Wed, 7 Sep 2022 21:22:47 +0200 Subject: mpv: fix cross compilation --- pkgs/applications/video/mpv/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs/applications/video/mpv/default.nix') diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index cf81c0e0446..6a3bfe9fbfd 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -24,6 +24,7 @@ , waylandSupport ? stdenv.isLinux , wayland , wayland-protocols + , wayland-scanner , libxkbcommon , x11Support ? stdenv.isLinux @@ -100,6 +101,8 @@ in stdenv.mkDerivation rec { NIX_LDFLAGS = lib.optionalString x11Support "-lX11 -lXext " + lib.optionalString stdenv.isDarwin "-framework CoreFoundation"; + dontAddWafCrossFlags = true; + wafConfigureFlags = [ "--enable-libmpv-shared" "--enable-manpage-build" @@ -127,7 +130,8 @@ in stdenv.mkDerivation rec { python3 wafHook which - ] ++ lib.optionals swiftSupport [ swift ]; + ] ++ lib.optionals swiftSupport [ swift ] + ++ lib.optionals waylandSupport [ wayland-scanner ]; buildInputs = [ ffmpeg -- cgit 1.4.1