Update tempora-lgc source link as the original site seems to be permanently down
This commit is contained in:
parent
341705a868
commit
fb03c7d7f4
|
@ -1,49 +1,39 @@
|
||||||
x@{builderDefsPackage
|
{stdenv, fetchurl}:
|
||||||
, unzip
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
let
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
srcs = [
|
||||||
[];
|
(fetchurl {
|
||||||
|
url = "www.ttfotf.com/download-font/tempora-lgc-unicode-bold-italic.otf";
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
sha256 = "1yfbi62j6gjmzglxz29m6x6lxqpxghcqjjh916qn8in74ba5v0gq";
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
})
|
||||||
sourceInfo = rec {
|
(fetchurl {
|
||||||
version="0.2";
|
url = "www.ttfotf.com/download-font/tempora-lgc-unicode-bold.otf";
|
||||||
baseName="tempora-lgc";
|
sha256 = "0bfbl1h9h1022km2rg1zwl9lpabhnwdsvzdp0bwmf0wbm62550cp";
|
||||||
name="${baseName}-${version}";
|
})
|
||||||
url="http://www.thessalonica.org.ru/downloads/${baseName}.otf.zip";
|
(fetchurl {
|
||||||
hash="18n5ml2chc1bhrv43i64sz2dz1zc2dw087wcwn5l9ysqsmf0387i";
|
url = "www.ttfotf.com/download-font/tempora-lgc-unicode-italic.otf";
|
||||||
};
|
sha256 = "10m9j4bvr6c4zp691wxm4hvzhph2zlfsxk1nmbsb9vn1i6vfgz04";
|
||||||
|
})
|
||||||
|
(fetchurl {
|
||||||
|
url = "www.ttfotf.com/download-font/tempora-lgc-unicode.otf";
|
||||||
|
sha256 = "0iwa8wyydcpjss6d1jy4jibqxpvzph4vmaxwwmndpsqy1fz64y9i";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
buildInputs = [
|
||||||
|
];
|
||||||
in
|
in
|
||||||
rec {
|
stdenv.mkDerivation {
|
||||||
src = a.fetchurl {
|
name = "tempora-lgc";
|
||||||
url = sourceInfo.url;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
inherit srcs;
|
||||||
phaseNames = ["doUnpack" "installFonts"];
|
phases = "installPhase";
|
||||||
|
installPhase = ''
|
||||||
doUnpack = a.fullDepEntry ''
|
mkdir -p "$out/share/fonts/opentype/public"
|
||||||
unzip ${src}
|
cp ${toString srcs} "$out/share/fonts/opentype/public"
|
||||||
'' ["addInputs"];
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
maintainers = with a.lib.maintainers;
|
description = ''Tempora font'';
|
||||||
[
|
license = stdenv.lib.licenses.gpl2 ;
|
||||||
raskin
|
maintainers = [stdenv.lib.maintainers.raskin];
|
||||||
];
|
platforms = stdenv.lib.platforms.linux;
|
||||||
platforms = with a.lib.platforms;
|
|
||||||
all;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
}
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://www.thessalonica.org.ru/ru/fonts-download.html";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}) x
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue