Added some xfs and general font changes.

svn path=/nixos/trunk/; revision=9966
This commit is contained in:
Michael Raskin 2007-12-25 12:16:38 +00:00
parent ba09f592c8
commit b3fa4f1e4e
6 changed files with 16 additions and 3 deletions

View File

@ -20,7 +20,7 @@ stdenv.mkDerivation
fontDirs=\"\$fontDirs \$(dirname \$i)\";
done;
mkdir -p \$out/share/X11-fonts/;
for i in \$(find \$fontDirs -type f); do
for i in \$(find \$fontDirs -type f -o -type l); do
j=\${i##*/}
if ! test -e \$out/share/X11-fonts/\${j}; then
ln -s \$i \$out/share/X11-fonts/\${j};
@ -29,6 +29,7 @@ stdenv.mkDerivation
cd \$out/share/X11-fonts/
rm fonts.dir
rm fonts.scale
rm fonts.alias
mkfontdir
mkfontscale
cat \$( find \$fontalias/ -name fonts.alias) >fonts.alias

View File

@ -860,6 +860,14 @@
Default colour depth.
";
};
useXFS = mkOption {
default = false;
example = "unix/:7100";
description = "
Way to access the X Font Server to use.
";
};
};

View File

@ -222,7 +222,7 @@ in
description "Apache HTTPD"
start on ${startingDependency}/started
stop on ${startingDependency}/stop
stop on shutdown
respawn ${httpd}/bin/httpd -f ${httpdConf} -DNO_DETACH
'';

View File

@ -12,7 +12,7 @@ rec {
job = "
description = \"X Font Server\"
start on ${startingDependency}/started
stop on ${startingDependency}/stop
stop on shutdown
respawn ${pkgs.xorg.xfs}/bin/xfs -config ${configFile}
";

View File

@ -1,5 +1,6 @@
Section "Files"
# Font directories.
@xfs@
@fontPaths@
# Module (driver) directories.

View File

@ -116,6 +116,9 @@ let
serverLayoutOptions = cfg.serverLayoutOptions;
defaultDepth = cfg.defaultDepth;
xfs = (if cfg.useXFS == false then "" else
"FontPath \"${toString cfg.useXFS}\"");
buildCommand = "
buildCommand= # urgh, don't substitute this