mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 12:14:40 +00:00
comic-mono: init at 2020-12-28
This commit is contained in:
parent
4590810a5d
commit
9f227ab554
14
pkgs/data/fonts/comic-mono/comic-mono-weight.conf
Normal file
14
pkgs/data/fonts/comic-mono/comic-mono-weight.conf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Fix missing/incorrect font weight data in Comic Mono. -->
|
||||||
|
|
||||||
|
<match target="scan">
|
||||||
|
<test name="fullname">
|
||||||
|
<string>Comic Mono</string>
|
||||||
|
</test>
|
||||||
|
<edit name="weight">
|
||||||
|
<const>book</const>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
|
</fontconfig>
|
35
pkgs/data/fonts/comic-mono/default.nix
Normal file
35
pkgs/data/fonts/comic-mono/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib, fetchFromGitHub }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "2020-12-28";
|
||||||
|
in fetchFromGitHub {
|
||||||
|
name = "comic-mono-font-${version}";
|
||||||
|
|
||||||
|
owner = "dtinth";
|
||||||
|
repo = "comic-mono-font";
|
||||||
|
rev = "9a96d04cdd2919964169192e7d9de5012ef66de4";
|
||||||
|
|
||||||
|
postFetch = ''
|
||||||
|
mkdir -p $out/share/fonts
|
||||||
|
tar -z -f $downloadedFile --wildcards -x \*.ttf --one-top-level=$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
|
||||||
|
'';
|
||||||
|
|
||||||
|
hash = "sha256-poMU+WfDZcsyWyFiiXKJ284X22CJlxQIzcJtApnIdAY=";
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
@ -23953,6 +23953,8 @@ with pkgs;
|
|||||||
|
|
||||||
comfortaa = callPackage ../data/fonts/comfortaa {};
|
comfortaa = callPackage ../data/fonts/comfortaa {};
|
||||||
|
|
||||||
|
comic-mono = callPackage ../data/fonts/comic-mono { };
|
||||||
|
|
||||||
comic-neue = callPackage ../data/fonts/comic-neue { };
|
comic-neue = callPackage ../data/fonts/comic-neue { };
|
||||||
|
|
||||||
comic-relief = callPackage ../data/fonts/comic-relief {};
|
comic-relief = callPackage ../data/fonts/comic-relief {};
|
||||||
|
Loading…
Reference in New Issue
Block a user