Skip to content

open-relay-typefaces: init at 2025-03-20, subsumes kreative-square-fonts#399148

Merged
flokli merged 1 commit intoNixOS:masterfrom
toastal:open-relay-typefaces
May 10, 2025
Merged

open-relay-typefaces: init at 2025-03-20, subsumes kreative-square-fonts#399148
flokli merged 1 commit intoNixOS:masterfrom
toastal:open-relay-typefaces

Conversation

@toastal
Copy link
Copy Markdown
Contributor

@toastal toastal commented Apr 16, 2025

Reference open-relay’s kreative-kore monorepo typefaces from a central location. Refactor kreative-square-fonts to fall under this umbrella.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

1

Footnotes

  1. Please consider giving up MS GitHub or offering a non-proprietary, non-US-corporate-controlled mirror for this free software project. I wish to delete this Microsoft account in the future, but I need more projects like this to support alternative methods to send patches & contribute.

@toastal toastal requested a review from listx April 16, 2025 09:27
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Apr 16, 2025
@toastal
Copy link
Copy Markdown
Contributor Author

toastal commented Apr 16, 2025

Heh. I guess it needs a fundamentally different design. I hate monorepos.

@toastal
Copy link
Copy Markdown
Contributor Author

toastal commented Apr 16, 2025

Well, for the record, the code does work as is even if a refactor is needed.

@toastal toastal force-pushed the open-relay-typefaces branch from 6b50bc0 to 5a593c4 Compare April 16, 2025 11:19
@toastal toastal changed the title open-relay-typefaces: init at 2025-03-20, subsumes kreative-square-fonts kreative-kore-typefaces: init at 2025-03-20, subsumes kreative-square-fonts Apr 16, 2025
@toastal toastal force-pushed the open-relay-typefaces branch 4 times, most recently from 38c480e to bd66a45 Compare April 16, 2025 11:38
@toastal toastal changed the title kreative-kore-typefaces: init at 2025-03-20, subsumes kreative-square-fonts open-relay-typefaces: init at 2025-03-20, subsumes kreative-square-fonts Apr 16, 2025
@toastal toastal force-pushed the open-relay-typefaces branch from bd66a45 to b4853e2 Compare April 16, 2025 11:39
@toastal
Copy link
Copy Markdown
Contributor Author

toastal commented Apr 16, 2025

Works post-refactor too.

@toastal toastal force-pushed the open-relay-typefaces branch 2 times, most recently from 1a406ae to 30c1455 Compare April 18, 2025 11:55
@toastal toastal requested a review from flokli May 1, 2025 10:46
Copy link
Copy Markdown
Member

@listx listx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey sorry for the late response.

This refactor brings in more fonts from open-relay, which deprecates the old kreative-square-fonts package I created a while back. Seems reasonable.

I have a couple questions but they are non-blocking. Approved, thanks.

Comment thread pkgs/top-level/aliases.nix Outdated
Comment thread pkgs/top-level/all-packages.nix Outdated
Comment on lines 15649 to 13649
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Would it make more sense to use something like open-relay-fonts.kreative-square for the name? My Nix is rusty and to me this just looks like we're expecting users to install the fonts only by their name. But these fonts all come from open-relay so maybe it makes sense to group them together somehow?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tough call since I don’t see it as much with everything trying to flatten (tho I prefer nesting myself).

Copy link
Copy Markdown
Contributor Author

@toastal toastal May 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other top-level nested things are like ocamlPackages, gnomeExtension, linuxKernel, libsForQt5, where 4 fonts seems a bit out of place—tho lohit-fonts + mplus-outline-fonts are there.


If I were a Nixpkgs maintainer, I would personally like to see fonts in its own attrset like the aforementioned ocamlPackages since there is a lot of names used just for fonts & fonts, while being software, generally tend to ship as is versus the from-source build approach (tho I would venture to guess Google Fonts requiring a repository with the prebuilt font has something to do with that). It would also make certain operations easier since you could do with pkgs.fonts; … or have the system font setups take a callback with the fonts (such as { fonts.packages = (fonts: with fonts; [ roboto ]); }).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I were a Nixpkgs maintainer, I would personally like to see fonts in its own attrset like [...]

You /are/ a nixpkgs maintainer. You might not have the commit bit yet, but that's not a requirement to propose refactors in nixpkgs. It's more of a Do-ocracy, there's not a font institution inside the community responsible for a fonts attribute 😆

If you're serious about this, open an issue, highlighting people previously involved. Maybe prototype on the "how" somewhere local before, and open a draft PR once it cooked a bit more. This shouldn't be self-merged anyways, but needs to be reviewed by people frequently interacting with the font system, so commit bits are orthogonal.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label May 4, 2025
@toastal toastal force-pushed the open-relay-typefaces branch 2 times, most recently from 707bec2 to 701e25a Compare May 10, 2025 05:10
@toastal toastal requested a review from listx May 10, 2025 05:16
Reference open-relay’s monorepo typefaces from a central location.
Refactor kreative-square-fonts to fall under this umbrella.
@toastal toastal force-pushed the open-relay-typefaces branch from 701e25a to 91f06db Compare May 10, 2025 05:17
@flokli flokli merged commit 4123818 into NixOS:master May 10, 2025
27 checks passed
@leona-ya
Copy link
Copy Markdown
Member

comstructium fails to build on hydra: https://hydra.nixos.org/build/296991332, https://hydra.nixos.org/build/296991331

@toastal
Copy link
Copy Markdown
Contributor Author

toastal commented May 12, 2025

@leona-ya … just saw that & was about to push a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants