mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
Added some xfs and general font changes.
svn path=/nixos/trunk/; revision=9966
This commit is contained in:
parent
ba09f592c8
commit
b3fa4f1e4e
@ -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
|
||||
|
@ -860,6 +860,14 @@
|
||||
Default colour depth.
|
||||
";
|
||||
};
|
||||
|
||||
useXFS = mkOption {
|
||||
default = false;
|
||||
example = "unix/:7100";
|
||||
description = "
|
||||
Way to access the X Font Server to use.
|
||||
";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
'';
|
||||
|
@ -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}
|
||||
";
|
||||
|
@ -1,5 +1,6 @@
|
||||
Section "Files"
|
||||
# Font directories.
|
||||
@xfs@
|
||||
@fontPaths@
|
||||
|
||||
# Module (driver) directories.
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user