nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchFromGitHub }:
2
3stdenvNoCC.mkDerivation {
4 pname = "comic-mono-font";
5 version = "2020-12-28";
6
7 src = fetchFromGitHub {
8 owner = "dtinth";
9 repo = "comic-mono-font";
10 rev = "9a96d04cdd2919964169192e7d9de5012ef66de4";
11 hash = "sha256-q8NxrluWuH23FfRlntIS0MDdl3TkkGE7umcU2plS6eU=";
12 };
13
14 installPhase = ''
15 runHook preInstall
16
17 mkdir -p $out/share/fonts
18 cp *.ttf $out/share/fonts
19
20 mkdir -p $out/etc/fonts/conf.d
21 ln -s ${./comic-mono-weight.conf} $out/etc/fonts/conf.d/30-comic-mono.conf
22
23 runHook postInstall
24 '';
25
26 meta = with lib; {
27 description = "A legible monospace font that looks like Comic Sans";
28 longDescription = ''
29 A legible monospace font... the very typeface you’ve been trained to
30 recognize since childhood. This font is a fork of Shannon Miwa’s Comic
31 Shanns (version 1).
32 '';
33 homepage = "https://dtinth.github.io/comic-mono-font/";
34
35 license = licenses.mit;
36 maintainers = with maintainers; [ an-empty-string totoroot ];
37 platforms = platforms.all;
38 };
39}