2023-02-02 18:25:31 +00:00
|
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
|
pname = "comic-mono-font";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
version = "2020-12-28";
|
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "dtinth";
|
|
|
|
|
repo = "comic-mono-font";
|
|
|
|
|
rev = "9a96d04cdd2919964169192e7d9de5012ef66de4";
|
|
|
|
|
hash = "sha256-q8NxrluWuH23FfRlntIS0MDdl3TkkGE7umcU2plS6eU=";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
runHook preInstall
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
|
|
mkdir -p $out/share/fonts
|
2023-02-02 18:25:31 +00:00
|
|
|
|
cp *.ttf $out/share/fonts
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
|
|
mkdir -p $out/etc/fonts/conf.d
|
|
|
|
|
ln -s ${./comic-mono-weight.conf} $out/etc/fonts/conf.d/30-comic-mono.conf
|
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
runHook postInstall
|
|
|
|
|
'';
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "A legible monospace font that looks like Comic Sans";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
A legible monospace font... the very typeface you’ve been trained to
|
|
|
|
|
recognize since childhood. This font is a fork of Shannon Miwa’s 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;
|
|
|
|
|
};
|
|
|
|
|
}
|