2020-05-24 19:49:52 +00:00
|
|
|
{ fetchFromGitHub, mkfontscale, stdenv }:
|
2020-05-14 20:18:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tamzen-font";
|
2020-05-24 19:49:52 +00:00
|
|
|
version = "1.11.5";
|
2020-05-14 20:18:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sunaku";
|
|
|
|
repo = "tamzen-font";
|
|
|
|
rev = "Tamzen-${version}";
|
2020-05-24 19:49:52 +00:00
|
|
|
sha256 = "00x5fipzqimglvshhqwycdhaqslbvn3rl06jnswhyxfvz16ymj7s";
|
2020-05-14 20:18:13 +00:00
|
|
|
};
|
|
|
|
|
2020-05-24 19:49:52 +00:00
|
|
|
nativeBuildInputs = [ mkfontscale ];
|
2020-05-14 20:18:13 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 644 -D pcf/*.pcf -t "$out/share/fonts/misc"
|
|
|
|
install -m 644 -D psf/*.psf -t "$out/share/consolefonts"
|
2020-05-24 19:49:52 +00:00
|
|
|
install -m 644 -D otb/*.otb -t "$otb/share/fonts/misc"
|
2020-05-14 20:18:13 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|