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