biz-ud-gothic: init at 1.051 (#411145)

This commit is contained in:
Aleksana 2025-06-09 23:02:20 +08:00 committed by GitHub
commit d85424d79d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,41 @@
{
lib,
stdenvNoCC,
fetchzip,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "biz-ud-gothic";
version = "1.051";
src = fetchzip {
# Sticking with this assets file due to ongoing discussions.
# We may switch to a different asset once the issue is resolved or clarifications are provided.
# ref: https://github.com/googlefonts/morisawa-biz-ud-gothic/issues/47
url = "https://github.com/googlefonts/morisawa-biz-ud-gothic/releases/download/v${finalAttrs.version}/morisawa-biz-ud-gothic-fonts.zip";
hash = "sha256-7PlIrQX1fnFHXm7mjfoOCVp3GSnLT2GlVZdSoZbh/s4=";
};
installPhase = ''
runHook preInstall
install -Dm444 fonts/ttf/*.ttf -t "$out/share/fonts/truetype/"
runHook postInstall
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Universal Design Japanese font";
homepage = "https://github.com/googlefonts/morisawa-biz-ud-gothic";
license = lib.licenses.ofl;
maintainers = with lib.maintainers; [
kachick
];
platforms = lib.platforms.all;
};
})