wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
17.48k stars 787 forks source link

Text rendering as blocks in the nix distribution #6249

Open realhackcraft opened 2 weeks ago

realhackcraft commented 2 weeks ago

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20240203-110809-5046fc22

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

No, and I'll explain why below

Describe the bug

I'm not upgrading to a nightly version because this issue is not present on the same version of wezterm, installed by homebrew.

The issue is that when I open wezterm, the font is just blocks.

From nix: Screenshot 2024-10-08 at 12 14 39

From homebrew: Screenshot 2024-10-08 at 12 17 59

To Reproduce

I have nix and Install wezterm from nix.

My nix config:

{
  description = "Hackcraft_'s Darwin system flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    nix-darwin.url = "github:LnL7/nix-darwin";
    nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = inputs@{ self, nix-darwin, nixpkgs }:
    let
      configuration = { pkgs, ... }: {
        # List packages installed in system profile. To search by name, run:
        # $ nix-env -qaP | grep wget
        environment.systemPackages =
          [
            pkgs.wezterm
            pkgs.neovim
            pkgs.tmux
          ];

        # Auto upgrade nix package and the daemon service.
        services.nix-daemon.enable = true;
        # nix.package = pkgs.nix;

        # Necessary for using flakes on this system.
        nix.settings.experimental-features = "nix-command flakes";

        # Create /etc/zshrc that loads the nix-darwin environment.
        programs.zsh.enable = true; # default shell on catalina
        # programs.fish.enable = true;

        # Set Git commit hash for darwin-version.
        system.configurationRevision = self.rev or self.dirtyRev or null;

        # Used for backwards compatibility, please read the changelog before changing.
        # $ darwin-rebuild changelog
        system.stateVersion = 5;

        # The platform the configuration will be used on.
        nixpkgs.hostPlatform = "aarch64-darwin";
      };
    in
    {
      # Build darwin flake using:
      # $ darwin-rebuild build --flake .#hackcraft
      darwinConfigurations."hackcraft" = nix-darwin.lib.darwinSystem {
        modules = [ configuration ];
      };

      # Expose the package set, including overlays, for convenience.
      darwinPackages = self.darwinConfigurations."hackcraft".pkgs;
    };
}

Configuration

no config

Expected Behavior

Text renders correctly

Logs

No response

Anything else?

No response

bew commented 2 weeks ago

Duplicate of https://github.com/wez/wezterm/issues/5990.

Have you tried to use front_end = "WebGpu" in your config?