nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchzip,
5}:
6
7stdenvNoCC.mkDerivation rec {
8 pname = "sudo-font";
9 version = "3.4";
10
11 src = fetchzip {
12 url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip";
13 hash = "sha256-sSLY94wY9+AYAqWDq+Xy+KctUfJVS0jeS3baF8mLO9I=";
14 };
15
16 installPhase = ''
17 runHook preInstall
18
19 install -Dm644 *.ttf -t $out/share/fonts/truetype/
20
21 runHook postInstall
22 '';
23
24 meta = {
25 description = "Font for programmers and command line users";
26 homepage = "https://www.kutilek.de/sudo-font/";
27 changelog = "https://github.com/jenskutilek/sudo-font/raw/v${version}/sudo/FONTLOG.txt";
28 license = lib.licenses.ofl;
29 maintainers = [ ];
30 platforms = lib.platforms.all;
31 };
32}