-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fonts broken for some applications #338933
Comments
a simple workaround for this is setting (Even with this workaround, some applications still doesn't fully work, like |
I reverted #324516 locally and now i have 700 derivations to build :( |
Commit c55536c parameterized the "include" direction in fonts.conf created by make-font-conf.xsl. But it forgot to update the one use of make-font-conf.xsl in the fontconfig derivation. Fixes NixOS#324516 NixOS#338933
Commit c55536c parameterized the "include" directive in fonts.conf created by make-font-conf.xsl. But it forgot to update the one use of make-font-conf.xsl in the fontconfig derivation. Fixes NixOS#324516 NixOS#338933
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tests-are-failing-due-to-missing-fontconfig-config/51487/4 |
sorry about that. I usually run a nixpkgs-review on my PRs, especially of this magnitude but It's been some time so I dont remember the details. |
don't worry about it, everyone makes mistakes/misses stuff from time to time, it's inevitable. i am more disappointed by the fact nixpkgs doesn't have some process in place to catch mistakes like this. and mistakes like this isn't even that subtle. (well, maybe things like this is actually much harder to catch than it seems on the surface. i am not involved in nixpkgs development, so please correct me.) personally, since i started using |
This comment was marked as duplicate.
This comment was marked as duplicate.
Not involved either, just pure speculation, but i think it's just not feasible to have some kind of automated testing for these things because there are more than 100k packages, 10k module options + home-manager, which also interacts with nixpkgs for some things. And they all can be mix-and-matched in variaety of different configurations, which nobody can predict. The language itself is lazy-evaluated and doesn't have any static type safety that you could encode your logic with (lib.types are runtime-based and dont enforce any compile-time guarantees either, just fancy test "identity" functions from what I can gather) and get errors as soon as the code is not used properly (LSPs try to provide as much static typing as possible based on pre-evaluated nixpkgs, but that usually is not enough). Basically, everything is mostly runtime and configuration (in terms of personal preferences) - dependant, hard/impossible to automate (unless you can think of something, then you're only welcome to contribute and make everyone's lives easier!) |
Er no, we have package tests and NixOS tests, it's documented in the manual. And half the time it's people not even checking if their PRs eval, so that's not even at the level of writing package tests. We just need more restraint and less self-merges and other rushed merges. |
My bad, should've looked. |
This just broke my system... environment.sessionVariables = {
FONTCONFIG_FILE = "${pkgs.fontconfig.out}/etc/fonts/fonts.conf";
FONTCONFIG_PATH = "${pkgs.fontconfig.out}/etc/fonts";
}; but it doesn't help :( |
The fix should be making its way to channels very soon. |
You need to remove the .out part so it looks like this: environment.sessionVariables = {
FONTCONFIG_PATH = "${pkgs.fontconfig}/etc/fonts";
FONTCONFIG_FILE = "${pkgs.fontconfig}/etc/fonts/fonts.conf";
}; |
No, you don't, and it's not actually going to help. |
if you use flakes you can simply use an old flake.lock file until the fix comes. That works for me. |
Is there a PR tracker related to this? |
You'll have to wait for the next |
The fix for most applications should be in nixos-unstable now. |
This did fix many of my applications. But wezterm is for instance still broken... So this issue is not fully fixed. |
What is broken about wezterm? |
@luiswirth that's an unrelated issue, follow #336069 instead |
Is this issue the reason why |
Describe the bug
root cause is #324516 removing the
<include />
directive fromfonts.conf
. #338326 (and #338815) attempted at fixing this, but they are incomplete. as they only hot patched thefonts.conf
installed to/etc
, but not the one in the output offontconfig
, which is used by some packages.for example:
nixpkgs/pkgs/applications/networking/browsers/vivaldi/default.nix
Lines 114 to 115 in b79ce4c
(just search for
FONTCONFIG_FILE
, there are many more.)feels wrong to me to hardcode a fonconfig path for the application instead of using
/etc/fonts
.related: #338908
Notify maintainers
@teto @K900
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: