1{ lib
2, stdenvNoCC
3, fetchzip
4}:
5stdenvNoCC.mkDerivation rec {
6 pname = "commit-mono";
7 version = "1.141";
8
9 src = fetchzip {
10 url = "https://github.com/eigilnikolajsen/commit-mono/releases/download/v${version}/CommitMono-${version}.zip";
11 hash = "sha256-ErC4ZM17rYq+5FRW9m9nIbQOjQGTCCoNhXHxb7Swd84=";
12 stripRoot = false;
13 };
14
15 dontConfigure = true;
16 dontPatch = true;
17 dontBuild = true;
18 dontFixup = true;
19 doCheck = false;
20
21 installPhase = ''
22 runHook preInstall
23 install -Dm644 CommitMono-${version}/*.otf -t $out/share/fonts/opentype
24 install -Dm644 CommitMono-${version}/ttfautohint/*.ttf -t $out/share/fonts/truetype
25 runHook postInstall
26 '';
27
28 meta = with lib; {
29 description = "An anonymous and neutral programming typeface focused on creating a better reading experience";
30 homepage = "https://commitmono.com/";
31 license = licenses.ofl;
32 maintainers = [ maintainers.yoavlavi ];
33 platforms = platforms.all;
34 };
35}