diff --git a/pkgs/applications/video/mplayer/default.nix b/pkgs/applications/video/mplayer/default.nix index 07bcb26569e9..dec3a5fc28da 100644 --- a/pkgs/applications/video/mplayer/default.nix +++ b/pkgs/applications/video/mplayer/default.nix @@ -21,6 +21,7 @@ , bs2bSupport ? false, libbs2b ? null # For screenshots , libpngSupport ? true, libpng ? null +, libjpegSupport ? true, libjpeg ? null , useUnfreeCodecs ? false }: @@ -46,6 +47,7 @@ assert jackaudioSupport -> jack2 != null; assert pulseSupport -> pulseaudio != null; assert bs2bSupport -> libbs2b != null; assert libpngSupport -> libpng != null; +assert libjpegSupport -> libjpeg != null; let @@ -121,6 +123,7 @@ stdenv.mkDerivation rec { ++ optional vdpauSupport libvdpau ++ optional speexSupport speex ++ optional libpngSupport libpng + ++ optional libjpegSupport libjpeg ++ optional bs2bSupport libbs2b ; diff --git a/pkgs/applications/video/mplayer2/default.nix b/pkgs/applications/video/mplayer2/default.nix index d8ada6372b10..a1e930d57d59 100644 --- a/pkgs/applications/video/mplayer2/default.nix +++ b/pkgs/applications/video/mplayer2/default.nix @@ -15,6 +15,7 @@ , bs2bSupport ? false, libbs2b ? null # For screenshots , libpngSupport ? true, libpng ? null +, libjpegSupport ? true, libjpeg ? null , useUnfreeCodecs ? false }: @@ -32,6 +33,7 @@ assert jackaudioSupport -> jack2 != null; assert pulseSupport -> pulseaudio != null; assert bs2bSupport -> libbs2b != null; assert libpngSupport -> libpng != null; +assert libjpegSupport -> libjpeg != null; let @@ -96,6 +98,7 @@ stdenv.mkDerivation rec { ++ optional speexSupport speex ++ optional bs2bSupport libbs2b ++ optional libpngSupport libpng + ++ optional libjpegSupport libjpeg ; nativeBuildInputs = [ yasm python3 ];