mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
biz-ud-gothic: init at 1.051 (#411145)
This commit is contained in:
commit
d85424d79d
1 changed files with 41 additions and 0 deletions
41
pkgs/by-name/bi/biz-ud-gothic/package.nix
Normal file
41
pkgs/by-name/bi/biz-ud-gothic/package.nix
Normal 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;
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue