diff options
author | Aleksana <me@aleksana.moe> | 2024-04-20 13:00:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 13:00:41 +0800 |
commit | 000e4bcfc89dbb1fdcdd6cf7bd7bb0bf7037f529 (patch) | |
tree | 677edb1b780483a8d13f6c7124f7b5116da3a8e1 | |
parent | 4b7e20a7ce81560b0c4798892ea80a06c00df246 (diff) | |
parent | a6f0cada9272b0b9fd070423142cf9dc0af32b9d (diff) |
Merge pull request #304460 from nyawox/poppins
poppins: init at 4.003
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/po/poppins/package.nix | 35 |
2 files changed, 41 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 39b6894e7540d..cd79af206ab65 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -14810,6 +14810,12 @@ githubId = 127548; name = "Judson Lester"; }; + nyawox = { + name = "nyawox"; + email = "nyawox.git@gmail.com"; + github = "nyawox"; + githubId = 93813719; + }; nzbr = { email = "nixos@nzbr.de"; github = "nzbr"; diff --git a/pkgs/by-name/po/poppins/package.nix b/pkgs/by-name/po/poppins/package.nix new file mode 100644 index 0000000000000..b56b2c3f2c8d6 --- /dev/null +++ b/pkgs/by-name/po/poppins/package.nix @@ -0,0 +1,35 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, + unzip, +}: +stdenvNoCC.mkDerivation rec { + pname = "poppins"; + version = "4.003"; + + src = fetchFromGitHub { + owner = "itfoundry"; + repo = "poppins"; + rev = "v${version}"; + hash = "sha256-7+RQHYxNFqOw2EeS2hgrbK/VbUAiPorUtkyRb5MFh5w="; + }; + + nativeBuildInputs = [unzip]; + + installPhase = '' + runHook preInstall + unzip products/Poppins-4.003-GoogleFonts-TTF.zip + unzip products/PoppinsLatin-5.001-Latin-TTF.zip + install -Dm644 *.ttf -t $out/share/fonts/truetype + runHook postInstall + ''; + + meta = { + description = "A Devanagari + Latin family for Google Fonts"; + homepage = "https://github.com/itfoundry/Poppins/"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [nyawox]; + platforms = lib.platforms.all; + }; +} |