2010-11-24 12:51:50 +01:00
|
|
|
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.002";
|
|
|
|
name="anonymousPro";
|
|
|
|
url="http://www.ms-studio.com/FontSales/AnonymousPro-${version}.zip";
|
|
|
|
hash="86665847a51cdfb58a1e1dfd8b1ba33f183485affe50b53e3304f63d3d3552ab";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
2013-06-07 02:13:54 +02:00
|
|
|
name = "${sourceInfo.name}-${sourceInfo.version}";
|
2010-11-24 12:51:50 +01:00
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
phaseNames = ["doUnpack" "installFonts"];
|
|
|
|
|
|
|
|
doUnpack = a.fullDepEntry (''
|
|
|
|
unzip ${src}
|
|
|
|
cd AnonymousPro*/
|
|
|
|
'') ["addInputs"];
|
|
|
|
|
|
|
|
meta = {
|
2013-10-05 16:22:46 +02:00
|
|
|
description = "TrueType font set intended for source code";
|
2010-11-24 12:51:50 +01:00
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
all;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.ms-studio.com/FontSales/anonymouspro.html";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|