about summary refs log tree commit diff
path: root/pkgs/data/fonts/anonymous-pro/default.nix
blob: 024793789835ac95fa63b04a253eecfb8c599567 (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
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation rec {
  name = "anonymousPro-${version}";
  version = "1.002";

  src = fetchurl {
    url = "http://www.marksimonson.com/assets/content/fonts/AnonymousPro-${version}.zip";
    sha256 = "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6";
  };

  nativeBuildInputs = [ unzip ];
  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out/share/fonts/truetype
    mkdir -p $out/share/doc/${name}
    find . -name "*.ttf" -exec cp -v {} $out/share/fonts/truetype \;
    find . -name "*.txt" -exec cp -v {} $out/share/doc/${name} \;
  '';

  meta = with stdenv.lib; {
    homepage = https://www.marksimonson.com/fonts/view/anonymous-pro;
    description = "TrueType font set intended for source code";
    longDescription = ''
      Anonymous Pro (2009) is a family of four fixed-width fonts
      designed with coding in mind. Anonymous Pro features an
      international, Unicode-based character set, with support for
      most Western and Central European Latin-based languages, plus
      Greek and Cyrillic. It is designed by Mark Simonson.
    '';
    maintainers = with maintainers; [ raskin rycee ];
    license = licenses.ofl;
    platforms = platforms.all;
  };
}