mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ fetchFromGitHub, mkfontscale, lib, 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 otb/*.otb pcf/*.pcf -t "$out/share/fonts/misc"
|
|
install -m 644 -D psf/*.psf -t "$out/share/consolefonts"
|
|
mkfontdir "$out/share/fonts/misc"
|
|
'';
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|
|
|