corefonts: use installFonts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user