mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
fontconfig: fix cross make-fonts-cache & make-fonts-config
This commit is contained in:
parent
dc8aca448d
commit
508cbf4d25
@ -1,8 +1,8 @@
|
||||
{ runCommand, lib, fontconfig, fontDirectories }:
|
||||
{ runCommand, lib, fontconfig, fontDirectories, buildPackages }:
|
||||
|
||||
runCommand "fc-cache"
|
||||
rec {
|
||||
buildInputs = [ fontconfig.bin ];
|
||||
nativeBuildInputs = [ buildPackages.fontconfig.bin ];
|
||||
preferLocalBuild = true;
|
||||
passAsFile = [ "fontDirs" ];
|
||||
fontDirs = ''
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
runCommand "fonts.conf"
|
||||
{
|
||||
buildInputs = [ libxslt fontconfig ];
|
||||
nativeBuildInputs = [ libxslt fontconfig ];
|
||||
# Add a default font for non-nixos systems, <1MB and in nixos defaults.
|
||||
fontDirectories = fontDirectories ++ [ dejavu_fonts.minimal ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user