lol
1{stdenv, fetchzip}:
2
3let
4 version = "1.1";
5in fetchzip rec {
6 name = "comic-relief-${version}";
7
8 url = "https://fontlibrary.org/assets/downloads/comic-relief/45c456b6db2aaf2f7f69ac66b5ac7239/comic-relief.zip";
9
10 postFetch = ''
11 mkdir -p $out/etc/fonts/conf.d
12 mkdir -p $out/share/doc/${name}
13 mkdir -p $out/share/fonts/truetype
14 cp -v ${./comic-sans-ms-alias.conf} $out/etc/fonts/conf.d/30-comic-sans-ms.conf
15 unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
16 unzip -j $downloadedFile FONTLOG.txt -d $out/share/doc/${name}
17 '';
18
19 sha256 = "0dz0y7w6mq4hcmmxv6fn4mp6jkln9mzr4s96vsg68wrl5b7k9yff";
20
21 meta = with stdenv.lib; {
22 homepage = http://loudifier.com/comic-relief/;
23 description = "A font metric-compatible with Microsoft Comic Sans";
24 longDescription = ''
25 Comic Relief is a typeface designed to be metrically equivalent
26 to the popular Comic Sans MS. Comic Relief can be used in place
27 of Comic Sans MS without having to move, resize, or reset any
28 part of the copy. It contains all glyphs and characters
29 available in Comic Sans MS.
30 '';
31 license = licenses.ofl;
32 platforms = platforms.all;
33 maintainers = [maintainers.rycee];
34
35 # Reduce the priority of this package. The intent is that if you
36 # also install the `corefonts` package, then you probably will not
37 # want to install the font alias of this package.
38 priority = 10;
39 };
40}