···1-x@{builderDefsPackage
2- , unzip
3- , ...}:
4-builderDefsPackage
5-(a :
6-let
7- helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
8- [];
910- buildInputs = map (n: builtins.getAttr n x)
11- (builtins.attrNames (builtins.removeAttrs x helperArgNames));
12- sourceInfo = rec {
13- url="http://www.i18nguy.com/unicode/andagii.zip";
14- name="andagii";
15- version="1.0.2";
16- hash="0cknb8vin15akz4ahpyayrpqyaygp9dgrx6qw7zs7d6iv9v59ds1";
17- };
18-in
19-rec {
20- src = a.fetchurl {
21- url = sourceInfo.url;
22 curlOpts = "--user-agent 'Mozilla/5.0'";
23- sha256 = sourceInfo.hash;
24 };
2526- name = "${sourceInfo.name}-${sourceInfo.version}";
27- inherit buildInputs;
2829- /* doConfigure should be removed if not needed */
30- phaseNames = ["doUnpack" "doInstall"];
31-32- doUnpack = a.fullDepEntry ''
33- unzip "${src}"
34- '' ["addInputs"];
3536- doInstall = a.fullDepEntry (''
37- mkdir -p "$out"/share/fonts/ttf/
38- cp ANDAGII_.TTF "$out"/share/fonts/ttf/andagii.ttf
39- '') ["defEnsureDir" "minInit"];
40-41- meta = {
42 description = "Unicode Plane 1 Osmanya script font";
43- maintainers = with a.lib.maintainers;
44- [
45- raskin
46- ];
47- hydraPlatforms = [];
48- # There are multiple claims that the font is GPL,
49- # so I include the package; but I cannot find the
50- # original source, so use it on your own risk
51- # Debian claims it is GPL - good enough for me.
52 };
53- passthru = {
54- updateInfo = {
55- downloadPage = "http://www.i18nguy.com/unicode/unicode-font.html";
56- };
57- };
58-}) x
59-
···1+{ stdenv, fetchzip }:
2+3+stdenv.mkDerivation rec {
4+ name = "andagii-${version}";
5+ version = "1.0.2";
00067+ src = fetchzip {
8+ url = http://www.i18nguy.com/unicode/andagii.zip;
9+ sha256 = "0a0c43y1fd5ksj50axhng7p00kgga0i15p136g68p35wj7kh5g2k";
10+ stripRoot = false;
0000000011 curlOpts = "--user-agent 'Mozilla/5.0'";
012 };
1314+ phases = [ "unpackPhase" "installPhase" ];
01516+ installPhase = ''
17+ mkdir -p $out/share/fonts/truetype
18+ cp -v ANDAGII_.TTF $out/share/fonts/truetype/andagii.ttf
19+ '';
002021+ # There are multiple claims that the font is GPL, so I include the
22+ # package; but I cannot find the original source, so use it on your
23+ # own risk Debian claims it is GPL - good enough for me.
24+ meta = with stdenv.lib; {
25+ homepage = http://www.i18nguy.com/unicode/unicode-font.HTML;
026 description = "Unicode Plane 1 Osmanya script font";
27+ maintainers = with maintainers; [ raskin rycee ];
28+ license = "unknown";
29+ platforms = platforms.all;
00000030 };
31+}
000000
···1+{ stdenv, fetchurl, unzip }:
000000023+stdenv.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";
00000010 };
1112+ nativeBuildInputs = [ unzip ];
13+ phases = [ "unpackPhase" "installPhase" ];
1415+ 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+ '';
2122+ meta = with stdenv.lib; {
23+ homepage = http://www.marksimonson.com/fonts/view/anonymous-pro;
000024 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;
035 };
36+}
0