From bbc9b1ab2c92c7d695ac70068ac8bbf433790a36 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sat, 25 Feb 2017 21:34:54 +0100 Subject: [PATCH] mpv: disable drmSupport on darwin --- pkgs/applications/video/mpv/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 960dabd75695..021c09a47e68 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -31,7 +31,7 @@ , libpngSupport ? true, libpng ? null , youtubeSupport ? true, youtube-dl ? null , vaapiSupport ? true, libva ? null -, drmSupport ? true, libdrm ? null +, drmSupport ? !stdenv.isDarwin, libdrm ? null , vapoursynthSupport ? false, vapoursynth ? null , jackaudioSupport ? false, libjack2 ? null @@ -114,7 +114,9 @@ in stdenv.mkDerivation rec { buildInputs = [ ffmpeg_3_2 freetype libass libpthreadstubs lua lua5_sockets libuchardet - ] ++ optional alsaSupport alsaLib + ] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ + libiconv Cocoa CoreAudio ]) + ++ optional alsaSupport alsaLib ++ optional xvSupport libXv ++ optional theoraSupport libtheora ++ optional xineramaSupport libXinerama @@ -122,9 +124,6 @@ in stdenv.mkDerivation rec { ++ optional bluraySupport libbluray ++ optional jackaudioSupport libjack2 ++ optional pulseSupport libpulseaudio - ++ optional stdenv.isDarwin libiconv - ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ - Cocoa CoreAudio ]) ++ optional rubberbandSupport rubberband ++ optional screenSaverSupport libXScrnSaver ++ optional vdpauSupport libvdpau