diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-05-28 16:04:02 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-05-28 16:04:02 +0000 |
commit | f709eff234f4cb8ebb374e34ac65fb5a1272ee33 (patch) | |
tree | 1a1a842dd7211d2d908dd5d0321e975728ab3e6d /pkgs/data/fonts/tempora-lgc/default.nix | |
parent | a37fc29f81da1a5892de4d5513f2c4b6236b7153 (diff) |
Add Tempora-LGC font
svn path=/nixpkgs/trunk/; revision=27309
Diffstat (limited to 'pkgs/data/fonts/tempora-lgc/default.nix')
-rw-r--r-- | pkgs/data/fonts/tempora-lgc/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/data/fonts/tempora-lgc/default.nix b/pkgs/data/fonts/tempora-lgc/default.nix new file mode 100644 index 0000000000000..16642d6956666 --- /dev/null +++ b/pkgs/data/fonts/tempora-lgc/default.nix @@ -0,0 +1,49 @@ +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="0.2"; + baseName="tempora-lgc"; + name="${baseName}-${version}"; + url="http://www.thessalonica.org.ru/downloads/${baseName}.otf.zip"; + hash="18n5ml2chc1bhrv43i64sz2dz1zc2dw087wcwn5l9ysqsmf0387i"; + }; +in +rec { + src = a.fetchurl { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + }; + + inherit (sourceInfo) name version; + inherit buildInputs; + + phaseNames = ["doUnpack" "installFonts"]; + + doUnpack = a.fullDepEntry '' + unzip ${src} + '' ["addInputs"]; + + meta = { + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + all; + }; + passthru = { + updateInfo = { + downloadPage = "http://www.thessalonica.org.ru/ru/fonts-download.html"; + }; + }; +}) x + |