From 6c48c3c230f7ca797dbe3d3793e94e2454416a3d Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sun, 4 Nov 2012 21:58:13 +0400 Subject: [PATCH] Add libpng dependency to MPlayer - screenshots now work --- pkgs/applications/video/MPlayer/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/MPlayer/default.nix b/pkgs/applications/video/MPlayer/default.nix index 13ebd39734e..944af1c2657 100644 --- a/pkgs/applications/video/MPlayer/default.nix +++ b/pkgs/applications/video/MPlayer/default.nix @@ -16,6 +16,8 @@ , x264Support ? false, x264 ? null , jackaudioSupport ? false, jackaudio ? null , pulseSupport ? false, pulseaudio ? null +# For screenshots +, libpngSupport ? true, libpng ? null }: assert x11Support -> (libX11 != null && libXext != null && mesa != null); @@ -35,7 +37,7 @@ assert theoraSupport -> libtheora != null; assert x264Support -> x264 != null; assert jackaudioSupport -> jackaudio != null; assert pulseSupport -> pulseaudio != null; - +assert libpngSupport -> libpng != null; let @@ -109,7 +111,9 @@ stdenv.mkDerivation rec { ++ optional screenSaverSupport libXScrnSaver ++ optional lameSupport lame ++ optional vdpauSupport libvdpau - ++ optional speexSupport speex; + ++ optional speexSupport speex + ++ optional libpngSupport libpng + ; buildNativeInputs = [ yasm ];