summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/video/mpv
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2022-09-07 21:22:47 +0200
committerSandro Jäckel <sandro.jaeckel@gmail.com>2022-09-07 21:23:05 +0200
commit63be0d9b2c79e6b9f35611fd68aa2b85d5b76baf (patch)
treea2dff7f711f1e2dd3fa4c1f038107129e91d2934 /pkgs/applications/video/mpv
parentc0f3a3ac7a31468f6b29466b4f504aa4f92b167c (diff)
mpv: fix cross compilation
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r--pkgs/applications/video/mpv/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix
index cf81c0e0446c..6a3bfe9fbfd9 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