diff --git a/pkgs/by-name/co/corefonts/package.nix b/pkgs/by-name/co/corefonts/package.nix index bf7dc985b2c4..ce3cb273f7f3 100644 --- a/pkgs/by-name/co/corefonts/package.nix +++ b/pkgs/by-name/co/corefonts/package.nix @@ -3,6 +3,7 @@ stdenv, fetchurl, cabextract, + installFonts, }: let @@ -76,7 +77,10 @@ stdenv.mkDerivation { ) fonts ); - nativeBuildInputs = [ cabextract ]; + nativeBuildInputs = [ + cabextract + installFonts + ]; buildCommand = '' for i in $exes; do @@ -124,7 +128,9 @@ stdenv.mkDerivation { mv webdings.ttf Webdings.ttf.tmp mv Webdings.ttf.tmp Webdings.ttf - install -m444 -Dt $out/share/fonts/truetype *.ttf + # using buildCommand means no phases are run + # so we run the function ourselves + installFonts # Also put the EULA there to be on the safe side. cp ${eula} $out/share/fonts/truetype/eula.html