2010-11-24 11:51:50 +00: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 {
|
2014-07-01 09:20:04 +01:00
|
|
|
version = "1.002";
|
2010-11-24 11:51:50 +00:00
|
|
|
name="anonymousPro";
|
|
|
|
url="http://www.ms-studio.com/FontSales/AnonymousPro-${version}.zip";
|
2014-07-01 09:20:04 +01:00
|
|
|
sha256 = "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6";
|
2010-11-24 11:51:50 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
2014-07-01 09:20:04 +01:00
|
|
|
sha256 = sourceInfo.sha256;
|
2010-11-24 11:51:50 +00:00
|
|
|
};
|
|
|
|
|
2013-06-07 01:13:54 +01:00
|
|
|
name = "${sourceInfo.name}-${sourceInfo.version}";
|
2010-11-24 11:51:50 +00:00
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
phaseNames = ["doUnpack" "installFonts"];
|
|
|
|
|
|
|
|
doUnpack = a.fullDepEntry (''
|
|
|
|
unzip ${src}
|
|
|
|
cd AnonymousPro*/
|
|
|
|
'') ["addInputs"];
|
|
|
|
|
|
|
|
meta = {
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "TrueType font set intended for source code";
|
2010-11-24 11:51:50 +00:00
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
all;
|
2014-07-01 07:22:09 +01:00
|
|
|
license = with a.lib.licenses; ofl;
|
|
|
|
hydraPlatforms = [];
|
|
|
|
homepage = "http://www.marksimonson.com/fonts/view/anonymous-pro";
|
2014-07-01 09:20:04 +01:00
|
|
|
downloadPage = "http://www.ms-studio.com/FontSales/anonymouspro.html";
|
|
|
|
inherit (sourceInfo) version;
|
2010-11-24 11:51:50 +00:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|