mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Adding Anonymous Pro font
svn path=/nixpkgs/trunk/; revision=24840
This commit is contained in:
parent
a94fc3966d
commit
823f34a075
50
pkgs/data/fonts/anonymous-pro/default.nix
Normal file
50
pkgs/data/fonts/anonymous-pro/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
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;
|
||||
};
|
||||
|
||||
inherit (sourceInfo) name version;
|
||||
inherit buildInputs;
|
||||
|
||||
phaseNames = ["doUnpack" "installFonts"];
|
||||
|
||||
doUnpack = a.fullDepEntry (''
|
||||
unzip ${src}
|
||||
cd AnonymousPro*/
|
||||
'') ["addInputs"];
|
||||
|
||||
meta = {
|
||||
description = "A 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
|
||||
|
@ -5136,6 +5136,8 @@ let
|
||||
|
||||
andagii = callPackage ../data/fonts/andagii {};
|
||||
|
||||
anonymousPro = callPackage ../data/fonts/anonymous-pro {};
|
||||
|
||||
arkpandora_ttf = builderDefsPackage (import ../data/fonts/arkpandora) {
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user