mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #346 from ierton/mplayer-fix-icon
mplayer: install desktop icon when X11 is enabled
This commit is contained in:
commit
70ac286bf8
@ -152,6 +152,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
NIX_LDFLAGS = stdenv.lib.optionalString x11Support "-lX11 -lXext";
|
||||
|
||||
installTargets = [ "install" ] ++ stdenv.lib.optional x11Support "install-gui";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Provide a reasonable standard font. Maybe we should symlink here.
|
||||
@ -159,6 +161,9 @@ stdenv.mkDerivation rec {
|
||||
''
|
||||
mkdir -p $out/share/mplayer
|
||||
cp ${freefont_ttf}/share/fonts/truetype/FreeSans.ttf $out/share/mplayer/subfont.ttf
|
||||
if test -f $out/share/applications/mplayer.desktop ; then
|
||||
echo "NoDisplay=True" >> $out/share/applications/mplayer.desktop
|
||||
fi
|
||||
'';
|
||||
|
||||
crossAttrs = {
|
||||
|
Loading…
Reference in New Issue
Block a user