summary refs log tree commit diff
path: root/pkgs/data/fonts/comic-neue/default.nix
blob: 5d3da910e0b2ed40a281cfe237b6bad561032ff3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, fetchurl
, unzip }:

stdenv.mkDerivation rec {
  name = "comic-neue-${version}";
  version = "2.2";

  src = fetchurl {
    url = "http://comicneue.com/${name}.zip";
    sha256 = "1dmmjhxxc0bj2755yksiiwh275vmnyciknr9b995lmdkjgh7sz6n";
  };

  buildInputs = [ unzip ];
  phases = [ "unpackPhase" "installPhase" ];
  sourceRoot = name;

  installPhase = ''
    mkdir -vp $out/share/fonts/truetype $out/share/fonts/opentype $out/share/fonts/EOT $out/share/fonts/WOFF $out/share/fonts/WOFF2 $out/share/doc/${name}
    cp -v OTF/*.otf  $out/share/fonts/opentype
    cp -v Web/*.ttf $out/share/fonts/truetype
    cp -v Web/*.eot  $out/share/fonts/EOT
    cp -v Web/*.woff  $out/share/fonts/WOFF
    cp -v Web/*.woff2  $out/share/fonts/WOFF2
    cp -v Booklet-ComicNeue.pdf FONTLOG.txt OFL-FAQ.txt SIL-License.txt $out/share/doc/${name}
  '';

  meta = with stdenv.lib; {
    homepage = http://comicneue.com/;
    description = "A casual type face: Make your lemonade stand look like a fortune 500 company";
    longDescription = ''
      It is inspired by Comic Sans but more regular.  The font was
      designed by Craig Rozynski.  It is available in two variants:
      Comic Neue and Comic Neue Angular.  The former having round and
      the latter angular terminals.  Both variants come in Light,
      Regular, and Bold weights with Oblique variants.
    '';
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = [ maintainers.AndersonTorres ];
  };
}