nixpkgs/pkgs/data/fonts/anonymous-pro/default.nix
Bjørn Forsman 28ac782583 Some description fixes
There are many more packages to fix, this is just a start.

Rules:
 * Don't repeat the package name (not always that easy...)
 * Start with capital letter
 * Don't end with full stop
 * Don't start with "The ..." or "A ..."

I've also added descriptions to some packages and rewritten others.
2013-10-05 19:36:23 +02:00

50 lines
1.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="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;
};
name = "${sourceInfo.name}-${sourceInfo.version}";
inherit buildInputs;
phaseNames = ["doUnpack" "installFonts"];
doUnpack = a.fullDepEntry (''
unzip ${src}
cd AnonymousPro*/
'') ["addInputs"];
meta = {
description = "TrueType font set intended for source code";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
all;
};
passthru = {
updateInfo = {
downloadPage = "http://www.ms-studio.com/FontSales/anonymouspro.html";
};
};
}) x