mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
1975e4b2ec
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
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ fetchFromGitHub, mkfontscale, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tamzen-font";
|
|
version = "1.11.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sunaku";
|
|
repo = "tamzen-font";
|
|
rev = "Tamzen-${version}";
|
|
sha256 = "00x5fipzqimglvshhqwycdhaqslbvn3rl06jnswhyxfvz16ymj7s";
|
|
};
|
|
|
|
nativeBuildInputs = [ mkfontscale ];
|
|
|
|
installPhase = ''
|
|
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 otb/*.otb -t "$otb/share/fonts/misc"
|
|
mkfontdir "$out/share/fonts/misc"
|
|
mkfontdir "$otb/share/fonts/misc"
|
|
'';
|
|
|
|
outputs = [ "out" "otb" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Bitmapped programming font based on Tamsyn";
|
|
longDescription = ''
|
|
Tamzen is a monospace bitmap font. It is programatically forked
|
|
from Tamsyn version 1.11, which backports glyphs from older
|
|
versions while deleting deliberately empty glyphs to allow
|
|
secondary/fallback fonts to provide real glyphs at those codepoints.
|
|
Tamzen also has fonts that additionally provide the Powerline
|
|
symbols.
|
|
'';
|
|
homepage = "https://github.com/sunaku/tamzen-font";
|
|
license = licenses.free;
|
|
maintainers = with maintainers; [ wishfort36 ];
|
|
};
|
|
}
|
|
|