nixpkgs/pkgs/data/fonts/tempora-lgc/default.nix
Michael Raskin f709eff234 Add Tempora-LGC font
svn path=/nixpkgs/trunk/; revision=27309
2011-05-28 16:04:02 +00:00

49 lines
1 KiB
Nix

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