about summary refs log tree commit diff
path: root/pkgs/applications/video/mplayer/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/video/mplayer/default.nix')
-rw-r--r--pkgs/applications/video/mplayer/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/applications/video/mplayer/default.nix b/pkgs/applications/video/mplayer/default.nix
index 1608585de795..a9f2abb3552d 100644
--- a/pkgs/applications/video/mplayer/default.nix
+++ b/pkgs/applications/video/mplayer/default.nix
@@ -1,15 +1,15 @@
-{ config, lib, stdenv, fetchurl, fetchsvn, pkg-config, freetype, yasm, ffmpeg_7
+{ config, lib, stdenv, fetchurl, fetchsvn, pkg-config, freetype, yasm, ffmpeg
 , aalibSupport ? true, aalib
 , fontconfigSupport ? true, fontconfig, freefont_ttf
 , fribidiSupport ? true, fribidi
 , x11Support ? true, libX11, libXext, libGLU, libGL
 , xineramaSupport ? true, libXinerama
 , xvSupport ? true, libXv
-, alsaSupport ? stdenv.isLinux, alsa-lib
+, alsaSupport ? stdenv.hostPlatform.isLinux, alsa-lib
 , screenSaverSupport ? true, libXScrnSaver
 , vdpauSupport ? false, libvdpau
-, cddaSupport ? !stdenv.isDarwin, cdparanoia
-, dvdnavSupport ? !stdenv.isDarwin, libdvdnav
+, cddaSupport ? !stdenv.hostPlatform.isDarwin, cdparanoia
+, dvdnavSupport ? !stdenv.hostPlatform.isDarwin, libdvdnav
 , dvdreadSupport ? true, libdvdread
 , bluraySupport ? true, libbluray
 , amrSupport ? false, amrnb, amrwb
@@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
 
   depsBuildBuild = [ buildPackages.stdenv.cc ];
   nativeBuildInputs = [ pkg-config yasm ];
-  buildInputs = [ freetype ffmpeg_7 ]
+  buildInputs = [ freetype ffmpeg ]
     ++ lib.optional aalibSupport aalib
     ++ lib.optional fontconfigSupport fontconfig
     ++ lib.optional fribidiSupport fribidi
@@ -112,7 +112,7 @@ stdenv.mkDerivation rec {
     ++ lib.optional libjpegSupport libjpeg
     ++ lib.optional bs2bSupport libbs2b
     ++ lib.optional v4lSupport libv4l
-    ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa darwin.apple_sdk.frameworks.OpenGL ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Cocoa darwin.apple_sdk.frameworks.OpenGL ]
     ;
 
   configurePlatforms = [ ];
@@ -147,8 +147,8 @@ stdenv.mkDerivation rec {
   ] ++ lib.optional (useUnfreeCodecs && codecs != null && !crossBuild) "--codecsdir=${codecs}"
     ++ lib.optional (stdenv.hostPlatform.isx86 && !crossBuild) "--enable-runtime-cpudetection"
     ++ lib.optional fribidiSupport "--enable-fribidi"
-    ++ lib.optional (stdenv.isLinux && !stdenv.isAarch64) "--enable-vidix"
-    ++ lib.optional stdenv.isLinux "--enable-fbdev"
+    ++ lib.optional (stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isAarch64) "--enable-vidix"
+    ++ lib.optional stdenv.hostPlatform.isLinux "--enable-fbdev"
     ++ lib.optionals (crossBuild) [
     "--enable-cross-compile"
     "--disable-vidix-pcidb"