1 { lib, stdenv, fetchzip, xorg }:
7 # Note: stripRoot doesn't work because the archive
8 # contains the metadata directory `__MACOSX`.
10 url = "https://tobiasjung.name/downloadfile.php?file=profont-x11.zip";
11 sha256 = "12dbm87wvcpmn7nzgzwlk45cybp091diara8blqm6129ps27z6kb";
16 url = "https://tobiasjung.name/downloadfile.php?file=profont-otb.zip";
17 sha256 = "18rfhfqrsj3510by0w1a7ak5as6r2cxh8xv02xc1y30mfa6g24x6";
23 nativeBuildInputs = [ xorg.mkfontscale ];
26 mkdir -p "$out/share/fonts/misc"
28 gzip -n -9 -c "$f" > "$out/share/fonts/misc/$f.gz"
30 install -D -m 644 LICENSE -t "$out/share/doc/$pname"
31 install -D -m 644 "$srcOtb/profontn.otb" -t $out/share/fonts/misc
32 mkfontdir "$out/share/fonts/misc"
36 homepage = "https://tobiasjung.name/profont/";
37 description = "Monospaced font created to be a most readable font for programming";
38 maintainers = with maintainers; [ myrl ];
39 license = licenses.mit;
40 platforms = platforms.all;