depot/third_party/nixpkgs/pkgs/data/fonts/comic-mono/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
1.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "comic-mono-font";
version = "2020-12-28";
src = fetchFromGitHub {
owner = "dtinth";
repo = "comic-mono-font";
rev = "9a96d04cdd2919964169192e7d9de5012ef66de4";
hash = "sha256-q8NxrluWuH23FfRlntIS0MDdl3TkkGE7umcU2plS6eU=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
cp *.ttf $out/share/fonts
mkdir -p $out/etc/fonts/conf.d
ln -s ${./comic-mono-weight.conf} $out/etc/fonts/conf.d/30-comic-mono.conf
runHook postInstall
'';
meta = with lib; {
description = "Legible monospace font that looks like Comic Sans";
longDescription = ''
A legible monospace font... the very typeface youve been trained to
recognize since childhood. This font is a fork of Shannon Miwas Comic
Shanns (version 1).
'';
homepage = "https://dtinth.github.io/comic-mono-font/";
license = licenses.mit;
maintainers = with maintainers; [ an-empty-string totoroot ];
platforms = platforms.all;
};
}