Allow auto-updating of the AnonymousPro font
This commit is contained in:
parent
285e112357
commit
8f03d888c3
@ -10,16 +10,16 @@ let
|
|||||||
buildInputs = map (n: builtins.getAttr n x)
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||||
sourceInfo = rec {
|
sourceInfo = rec {
|
||||||
version="1.002";
|
version = "1.002";
|
||||||
name="anonymousPro";
|
name="anonymousPro";
|
||||||
url="http://www.ms-studio.com/FontSales/AnonymousPro-${version}.zip";
|
url="http://www.ms-studio.com/FontSales/AnonymousPro-${version}.zip";
|
||||||
hash="86665847a51cdfb58a1e1dfd8b1ba33f183485affe50b53e3304f63d3d3552ab";
|
sha256 = "1asj6lykvxh46czbal7ymy2k861zlcdqpz8x3s5bbpqwlm3mhrl6";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
src = a.fetchurl {
|
src = a.fetchurl {
|
||||||
url = sourceInfo.url;
|
url = sourceInfo.url;
|
||||||
sha256 = sourceInfo.hash;
|
sha256 = sourceInfo.sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
name = "${sourceInfo.name}-${sourceInfo.version}";
|
name = "${sourceInfo.name}-${sourceInfo.version}";
|
||||||
@ -43,11 +43,8 @@ rec {
|
|||||||
license = with a.lib.licenses; ofl;
|
license = with a.lib.licenses; ofl;
|
||||||
hydraPlatforms = [];
|
hydraPlatforms = [];
|
||||||
homepage = "http://www.marksimonson.com/fonts/view/anonymous-pro";
|
homepage = "http://www.marksimonson.com/fonts/view/anonymous-pro";
|
||||||
};
|
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.ms-studio.com/FontSales/anonymouspro.html";
|
downloadPage = "http://www.ms-studio.com/FontSales/anonymouspro.html";
|
||||||
};
|
inherit (sourceInfo) version;
|
||||||
};
|
};
|
||||||
}) x
|
}) x
|
||||||
|
|
||||||
|
6
pkgs/data/fonts/anonymous-pro/default.upstream
Normal file
6
pkgs/data/fonts/anonymous-pro/default.upstream
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
attribute_name anonymousPro
|
||||||
|
url http://www.ms-studio.com/FontSales/anonymouspro.html
|
||||||
|
version_link '/AnonymousPro-.*[.]zip$'
|
||||||
|
do_overwrite (){
|
||||||
|
do_overwrite_just_version
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user