forked from mirrors/nixpkgs
tamzen: 1.11.4 -> 1.11.5
Pango doesn't support PCF and BDF fonts since v1.44 [1], but still supports OTB fonts. As such, we've had to generate OTB fonts for fonts that don't supply them [2], including tamzen. As of v1.11.5, tamzen supplies its own OTB fonts [3], so we don't need to make them ourselves. [1]: https://gitlab.gnome.org/GNOME/pango/-/issues/386 [2]: https://github.com/NixOS/nixpkgs/issues/75160 [3]: https://github.com/sunaku/tamzen-font/issues/25
This commit is contained in:
parent
f17888bf0f
commit
1975e4b2ec
|
@ -1,28 +1,22 @@
|
||||||
{ fetchFromGitHub, fontforge, mkfontscale, stdenv }:
|
{ fetchFromGitHub, mkfontscale, stdenv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tamzen-font";
|
pname = "tamzen-font";
|
||||||
version = "1.11.4";
|
version = "1.11.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sunaku";
|
owner = "sunaku";
|
||||||
repo = "tamzen-font";
|
repo = "tamzen-font";
|
||||||
rev = "Tamzen-${version}";
|
rev = "Tamzen-${version}";
|
||||||
sha256 = "17kgmvg6q32mqhx9g44hjvzv0si0mnpprga4z7na930g2zdd8846";
|
sha256 = "00x5fipzqimglvshhqwycdhaqslbvn3rl06jnswhyxfvz16ymj7s";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ fontforge mkfontscale ];
|
nativeBuildInputs = [ mkfontscale ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
# convert pcf fonts to otb
|
|
||||||
for i in pcf/*.pcf; do
|
|
||||||
name=$(basename "$i" .pcf)
|
|
||||||
fontforge -lang=ff -c "Open(\"$i\"); Generate(\"$name.otb\")"
|
|
||||||
done
|
|
||||||
|
|
||||||
install -m 644 -D pcf/*.pcf -t "$out/share/fonts/misc"
|
install -m 644 -D pcf/*.pcf -t "$out/share/fonts/misc"
|
||||||
install -m 644 -D psf/*.psf -t "$out/share/consolefonts"
|
install -m 644 -D psf/*.psf -t "$out/share/consolefonts"
|
||||||
install -m 644 -D *.otb -t "$otb/share/fonts/misc"
|
install -m 644 -D otb/*.otb -t "$otb/share/fonts/misc"
|
||||||
mkfontdir "$out/share/fonts/misc"
|
mkfontdir "$out/share/fonts/misc"
|
||||||
mkfontdir "$otb/share/fonts/misc"
|
mkfontdir "$otb/share/fonts/misc"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue