diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-05-28 19:01:59 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-05-28 19:01:59 +0000 |
commit | da947439177b516a13fb35e36af3feeba8d6cbfa (patch) | |
tree | c12c529e75f8e4dde544e4402e616059230dac00 /pkgs/data | |
parent | f709eff234f4cb8ebb374e34ac65fb5a1272ee33 (diff) |
Adding Gentium font
svn path=/nixpkgs/trunk/; revision=27310
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/gentium/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/data/fonts/gentium/default.nix b/pkgs/data/fonts/gentium/default.nix new file mode 100644 index 000000000000..a4e8099db963 --- /dev/null +++ b/pkgs/data/fonts/gentium/default.nix @@ -0,0 +1,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 + |