diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 343b75f6c0e2..c148cc2fef65 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -446,6 +446,13 @@ githubId = 25236206; name = "Adrian Dole"; }; + adriangl = { + email = "adrian@lauterer.it"; + matrix = "@adriangl:pvv.ntnu.no"; + github = "adrlau"; + githubId = 25004152; + name = "Adrian Gunnar Lauterer"; + }; AdsonCicilioti = { name = "Adson Cicilioti"; email = "adson.cicilioti@live.com"; diff --git a/pkgs/by-name/zp/zpix-pixel-font/package.nix b/pkgs/by-name/zp/zpix-pixel-font/package.nix new file mode 100644 index 000000000000..6a785c9d8fac --- /dev/null +++ b/pkgs/by-name/zp/zpix-pixel-font/package.nix @@ -0,0 +1,40 @@ +{ lib +, stdenvNoCC +, fetchurl +}: +stdenvNoCC.mkDerivation rec { + pname = "zpix-pixel-font"; + version = "3.1.8"; + + srcs = [ + (fetchurl { + name = "zpix-pixel-font.bdf"; + url = "https://github.com/SolidZORO/zpix-pixel-font/releases/download/v${version}/zpix.bdf"; + hash = "sha256-qE6YPKuk1FRRrTvmy4YIDuxRfslma264piUDj1FWtk4="; + }) + (fetchurl { + name = "zpix-pixel-font.ttf"; + url = "https://github.com/SolidZORO/zpix-pixel-font/releases/download/v${version}/zpix.ttf"; + hash = "sha256-UIgLGsVTbyhYMKfTYiA+MZmV4dFT9HX3sxTdrcc4vE0="; + }) + ]; + + dontUnpack = true; + __structuredAttrs = true; + + installPhase = '' + runHook preInstall + install -Dm444 ''${srcs[0]} $out/share/fonts/misc/zpix.bdf + install -Dm444 ''${srcs[1]} $out/share/fonts/truetype/zpix.ttf + runHook postInstall + ''; + + meta = with lib; { + description = "A pixel font supporting multiple languages like English, Chinese and Japanese"; + homepage = "https://github.com/SolidZORO/zpix-pixel-font/"; + changelog = "https://github.com/SolidZORO/zpix-pixel-font/blob/master/CHANGELOG.md"; + license = licenses.unfree; + maintainers = [ maintainers.adriangl ]; + platforms = platforms.all; + }; +}