* Generate the list of fonts in a Nix expression.

svn path=/nixos/trunk/; revision=7744
This commit is contained in:
Eelco Dolstra 2007-01-22 15:00:18 +00:00
parent ec3d2510c5
commit 6db2c1814e
2 changed files with 13 additions and 4 deletions

View File

@ -79,7 +79,18 @@ import ../helpers/make-etc.nix {
{ # Configuration file for fontconfig used to locate
# (X11) client-rendered fonts.
source = ./etc/fonts/fonts.conf;
source = pkgs.substituteAll {
src = ./etc/fonts/fonts.conf;
fontDirectories = map (dir: "<dir>${dir}</dir>")
[ # Search for fonts in...
# - the user's .fonts directory
"~/.fonts"
# - the user's current profile
"~/.nix-profile/lib/X11/fonts"
# - the default profile
"/nix/var/nix/profiles/default/lib/X11/fonts"
];
};
target = "fonts/fonts.conf";
}

View File

@ -3,8 +3,6 @@
<fontconfig>
<dir>/nix/var/nix/profiles/default/lib/X11/fonts</dir>
<dir>~/.nix-profile/lib/X11/fonts</dir>
<dir>~/.fonts</dir>
@fontDirectories@
</fontconfig>