summary refs log tree commit diff
path: root/pkgs/data/fonts/gentium/default.nix
blob: a4e8099db963a8aba62e7940ed7620a64c006097 (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
42
43
44
45
46
x@{builderDefsPackage
  , unzip
  , ...}:
builderDefsPackage
(a :  
let 
  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
    [];

  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
  sourceInfo = rec {
    version="1.504";
    baseName="GentiumPlus";
    name="${baseName}-${version}";
    url="http://scripts.sil.org/cms/scripts/render_download.php?&format=file&media_id=${name}.zip&filename=${name}";
    hash="04kslaqbscpfrc6igkifcv1nkrclrm35hqpapjhw9102wpq12fpr";
  };
in
rec {
  src = a.fetchurl {
    url = sourceInfo.url;
    sha256 = sourceInfo.hash;
    name = "${sourceInfo.name}.zip";
  };

  inherit (sourceInfo) name version;
  inherit buildInputs;

  phaseNames = ["addInputs" "doUnpack" "installFonts"];

  meta = {
    maintainers = with a.lib.maintainers;
    [
      raskin
    ];
    platforms = with a.lib.platforms;
      all;
  };
  passthru = {
    updateInfo = {
      downloadPage = "http://scripts.sil.org/cms/scripts/page.php?item_id=Gentium_download";
    };
  };
}) x