diff --git a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix index 1c88235b9257..dcef4a4b205f 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-cache.nix +++ b/pkgs/development/libraries/fontconfig/make-fonts-cache.nix @@ -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 = '' diff --git a/pkgs/development/libraries/fontconfig/make-fonts-conf.nix b/pkgs/development/libraries/fontconfig/make-fonts-conf.nix index 3cd4a894b37f..4d353f5d7e26 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-conf.nix +++ b/pkgs/development/libraries/fontconfig/make-fonts-conf.nix @@ -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 ]; }