diff --git a/pkgs/applications/video/MPlayer/default.nix b/pkgs/applications/video/MPlayer/default.nix index 78ade5c23469..170c2ca4f7e8 100644 --- a/pkgs/applications/video/MPlayer/default.nix +++ b/pkgs/applications/video/MPlayer/default.nix @@ -23,6 +23,10 @@ let inherit stdenv fetchurl; }; + rp9codecs = (import ./rp9codecs) { + inherit stdenv fetchurl; + }; + in stdenv.mkDerivation { @@ -51,7 +55,7 @@ stdenv.mkDerivation { ${if cacaSupport then "--enable-caca" else "--disable-caca"} ${if dvdnavSupport then "--enable-dvdnav" else ""} --win32codecsdir=${win32codecs} - --realcodecsdir=${win32codecs} + --realcodecsdir=${rp9codecs} --enable-runtime-cpudetection --enable-x11 --with-extraincdir=${libX11}/include --disable-xanim diff --git a/pkgs/applications/video/MPlayer/rp9codecs/builder.sh b/pkgs/applications/video/MPlayer/rp9codecs/builder.sh new file mode 100644 index 000000000000..b8dfd5ce6b8e --- /dev/null +++ b/pkgs/applications/video/MPlayer/rp9codecs/builder.sh @@ -0,0 +1,11 @@ +source $stdenv/setup + +buildPhase=true + +installPhase() { + mkdir $out + cp -prv * $out +} +installPhase=installPhase + +genericBuild diff --git a/pkgs/applications/video/MPlayer/rp9codecs/default.nix b/pkgs/applications/video/MPlayer/rp9codecs/default.nix new file mode 100644 index 000000000000..27d95f21604f --- /dev/null +++ b/pkgs/applications/video/MPlayer/rp9codecs/default.nix @@ -0,0 +1,8 @@ +{stdenv, fetchurl}: stdenv.mkDerivation { + name = "MPlayer-rp9codecs-20050115"; + builder = ./builder.sh; + src = fetchurl { + url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/rp9codecs-20050115.tar.bz2; + sha256 = "353c22e2c992a1c730bdd5fade66a94e1a058e38063d2ce064a6510b70c39677"; + }; +}