diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2022-08-21 12:07:34 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2022-08-29 00:16:14 +0200 |
commit | 0b3ec7fbc83637a33d004f296c1b743ea4fafdcb (patch) | |
tree | a9658f5b7ed262a92c13ff1b248aed0024c32431 /pkgs/applications/video/mpv | |
parent | 2e7c3920a07136c9b7321ba7b24dbdf5528d533f (diff) |
mpv: fix cross compilation
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r-- | pkgs/applications/video/mpv/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index cf81c0e0446c..e67f6d117a65 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -100,6 +100,10 @@ in stdenv.mkDerivation rec { NIX_LDFLAGS = lib.optionalString x11Support "-lX11 -lXext " + lib.optionalString stdenv.isDarwin "-framework CoreFoundation"; + # These flags are not supported and cause the build + # to fail, even when cross compilation itself works. + dontAddWafCrossFlags = true; + wafConfigureFlags = [ "--enable-libmpv-shared" "--enable-manpage-build" |