lol
1{ stdenv, fetchurl, unzip }:
2
3stdenv.mkDerivation rec {
4 name = "anonymousPro-${version}";
5 version = "1.002";
6
7 src = fetchurl {
8 url = "http://www.marksimonson.com/assets/content/fonts/AnonymousPro-${version}.zip";
9 sha256 = "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6";
10 };
11
12 nativeBuildInputs = [ unzip ];
13 phases = [ "unpackPhase" "installPhase" ];
14
15 installPhase = ''
16 mkdir -p $out/share/fonts/truetype
17 mkdir -p $out/share/doc/${name}
18 find . -name "*.ttf" -exec cp -v {} $out/share/fonts/truetype \;
19 find . -name "*.txt" -exec cp -v {} $out/share/doc/${name} \;
20 '';
21
22 meta = with stdenv.lib; {
23 homepage = http://www.marksimonson.com/fonts/view/anonymous-pro;
24 description = "TrueType font set intended for source code";
25 longDescription = ''
26 Anonymous Pro (2009) is a family of four fixed-width fonts
27 designed with coding in mind. Anonymous Pro features an
28 international, Unicode-based character set, with support for
29 most Western and Central European Latin-based languages, plus
30 Greek and Cyrillic. It is designed by Mark Simonson.
31 '';
32 maintainers = with maintainers; [ raskin rycee ];
33 license = licenses.ofl;
34 platforms = platforms.all;
35 };
36}