Merge pull request #5268 from prikhi/fix-dina-font

dina-font: fix the installPhase

lethalman 747488ae 80e3018b

Changed files
+2 -4
pkgs
data
fonts
+2 -4
pkgs/data/fonts/dina/default.nix
···
dontBuild = true;
patchPhase = "sed -i 's/microsoft-cp1252/ISO8859-1/' *.bdf";
-
preInstall = ''
-
export _get_font_size() {
+
installPhase = ''
+
_get_font_size() {
_pt=$\{1%.bdf}
_pt=$\{_pt#*-}
echo $_pt
}
-
'';
-
installPhase = ''
for i in Dina_i400-*.bdf; do
bdftopcf -t -o DinaItalic$(_get_font_size $i).pcf $i