From 9aad689f30308a6de71b172ab7500f9974fbbcf8 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 28 Jan 2024 02:59:00 -0500 Subject: [PATCH] overlays: Downgrade kitty from 0.32.0 to 0.31.0 The new version causes icons and some CJK characters to show up as rectangle boxes. kitty prints "Too many fallback fonts" as output, and the issue continues to occur in 0.32.1. Probably caused by https://github.com/kovidgoyal/kitty/issues/6865 and should be possible to fix with symbol_map in the future. --- overlays/default.nix | 1 + overlays/kitty.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 overlays/kitty.nix diff --git a/overlays/default.nix b/overlays/default.nix index 8402c5e1..32d449da 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -2,6 +2,7 @@ imports = [ ./alejandra.nix ./eza.nix + ./kitty.nix ./zola.nix ]; } diff --git a/overlays/kitty.nix b/overlays/kitty.nix new file mode 100644 index 00000000..f5232ceb --- /dev/null +++ b/overlays/kitty.nix @@ -0,0 +1,22 @@ +{ + nixpkgs.overlays = [ + (final: prev: { + kitty = prev.kitty.overrideAttrs (oldAttrs: rec { + version = "0.31.0"; + + src = prev.fetchFromGitHub { + owner = "kovidgoyal"; + repo = "kitty"; + rev = "refs/tags/v${version}"; + hash = "sha256-VWWuC4T0pyTgqPNm0gNL1j3FShU5b8S157C1dKLon1g="; + }; + + goModules = (prev.buildGoModule { + pname = "kitty-go-modules"; + inherit src version; + vendorHash = "sha256-OyZAWefSIiLQO0icxMIHWH3BKgNas8HIxLcse/qWKcU="; + }).goModules; + }); + }) + ]; +}