NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.34k stars 14.3k forks source link

Package request: Static version of `noto-cjk` #351244

Open leana8959 opened 1 month ago

leana8959 commented 1 month ago

Project description

The static version can be useful, notably for compiling typst documents, since the typst compiler doesn't support variable fonts yet.

Currently, Nixpkgs already has noto-cjk's variable version packaged, but not the static version.

I already have written a nix expression for the static verison of noto-cjk that works. I don't have previous experiences of adding packages, but I would love to add and maintain this package if possible.

Thanks :)

Metadata


Add a :+1: reaction to issues you find important.

amalgame21 commented 3 weeks ago

noto-cjk also include noto-fonts-cjk-sans. I tried overrideAttrs to test both Serif and Sans but unsucessful. I think I am unable to override tho original sparseCheckout to download Serif/OTC and Sans/OTC. It would be great if you also init noto-fonts-cjk-sans-static as well. Thanks!

leana8959 commented 3 weeks ago

I thought about doing that in the beginning, but in the end decided to do one thing at a time.

Implementation wise, would it be a good idea to fuse all noto-cjk packages into a mega package with aliases that flip flags at the top level?