modify font install to match that of most fonts on nix github

This commit is contained in:
puttaalu 2024-10-12 19:40:31 +02:00
parent 16cf16e2c4
commit 21592dc57d
3 changed files with 15 additions and 3 deletions

View File

@ -11,7 +11,11 @@ pkgs.stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
install -Dm444 -t $out/share/fonts/truetype $src/*.ttf runHook preInstall
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
runHook postInstall
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {

View File

@ -11,7 +11,11 @@ pkgs.stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
install -Dm444 -t $out/share/fonts/truetype $src/*.ttf runHook preInstall
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
runHook postInstall
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {

View File

@ -11,7 +11,11 @@ pkgs.stdenv.mkDerivation {
}; };
installPhase = '' installPhase = ''
install -Dm444 -t $out/share/fonts/opentype $src/*.otf runHook preInstall
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
runHook postInstall
''; '';
meta = with pkgs.lib; { meta = with pkgs.lib; {