Author: eelco
Date: Thu Dec 23 17:07:07 2010
New Revision: 25260
URL: https://svn.nixos.org/websvn/nix/?rev=25260&sc=1

Log:
* Restore MPlayer's default font.  This got lost somewhere.

Modified:
   nixpkgs/branches/stdenv-updates/pkgs/applications/video/MPlayer/default.nix

Modified: 
nixpkgs/branches/stdenv-updates/pkgs/applications/video/MPlayer/default.nix
==============================================================================
--- nixpkgs/branches/stdenv-updates/pkgs/applications/video/MPlayer/default.nix 
Thu Dec 23 16:31:38 2010        (r25259)
+++ nixpkgs/branches/stdenv-updates/pkgs/applications/video/MPlayer/default.nix 
Thu Dec 23 17:07:07 2010        (r25260)
@@ -12,7 +12,7 @@
 , lameSupport ? true, lame ? null
 , screenSaverSupport ? true, libXScrnSaver
 , pulseSupport ? false, pulseaudio
-, mesa, pkgconfig, unzip, yasm
+, mesa, pkgconfig, unzip, yasm, freefont_ttf
 }:
 
 assert alsaSupport -> alsaLib != null;
@@ -104,6 +104,13 @@
 
   NIX_LDFLAGS = if x11Support then "-lX11 -lXext" else "";
 
+  # Provide a reasonable standard font.  Maybe we should symlink here.
+  postInstall =
+    ''
+      mkdir -p $out/share/mplayer
+      cp ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf 
$out/share/mplayer/subfont.ttf
+    '';
+
   crossAttrs = {
     preConfigure = ''
       configureFlags="`echo $configureFlags |
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to