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

authored by Aleksana and committed by GitHub d85424d7 bcf80324

+41
+41
pkgs/by-name/bi/biz-ud-gothic/package.nix
···
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchzip, 5 + nix-update-script, 6 + }: 7 + 8 + stdenvNoCC.mkDerivation (finalAttrs: { 9 + pname = "biz-ud-gothic"; 10 + version = "1.051"; 11 + 12 + src = fetchzip { 13 + # Sticking with this assets file due to ongoing discussions. 14 + # We may switch to a different asset once the issue is resolved or clarifications are provided. 15 + # ref: https://github.com/googlefonts/morisawa-biz-ud-gothic/issues/47 16 + url = "https://github.com/googlefonts/morisawa-biz-ud-gothic/releases/download/v${finalAttrs.version}/morisawa-biz-ud-gothic-fonts.zip"; 17 + hash = "sha256-7PlIrQX1fnFHXm7mjfoOCVp3GSnLT2GlVZdSoZbh/s4="; 18 + }; 19 + 20 + installPhase = '' 21 + runHook preInstall 22 + 23 + install -Dm444 fonts/ttf/*.ttf -t "$out/share/fonts/truetype/" 24 + 25 + runHook postInstall 26 + ''; 27 + 28 + passthru = { 29 + updateScript = nix-update-script { }; 30 + }; 31 + 32 + meta = { 33 + description = "Universal Design Japanese font"; 34 + homepage = "https://github.com/googlefonts/morisawa-biz-ud-gothic"; 35 + license = lib.licenses.ofl; 36 + maintainers = with lib.maintainers; [ 37 + kachick 38 + ]; 39 + platforms = lib.platforms.all; 40 + }; 41 + })