From b5d965b047bd3434233ae2088c6969d3f3cde512 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 31 Oct 2023 17:52:27 -0400 Subject: [PATCH] overlays: Downgrade eza to 0.14.2 Fixes an issue where newer versions of eza don't align CJK characters properly. See: https://github.com/eza-community/eza/issues/556 --- overlays/default.nix | 1 + overlays/eza.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 overlays/eza.nix diff --git a/overlays/default.nix b/overlays/default.nix index ce57bf5d..06c8db1a 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -2,6 +2,7 @@ imports = [ ./alejandra.nix ./cmus.nix + ./eza.nix ./hyprnome.nix ./zola.nix ]; diff --git a/overlays/eza.nix b/overlays/eza.nix new file mode 100644 index 00000000..c2cd42c9 --- /dev/null +++ b/overlays/eza.nix @@ -0,0 +1,22 @@ +{ + nixpkgs.overlays = [ + (final: prev: { + eza = prev.eza.overrideAttrs (oldAttrs: rec { + version = "0.14.2"; + + src = prev.fetchFromGitHub { + owner = "eza-community"; + repo = "eza"; + rev = "v${version}"; + hash = "sha256-eST70KMdGgbTo4FNL3K5YGn9lwIGroG4y4ExKDb30hU="; + }; + + cargoDeps = oldAttrs.cargoDeps.overrideAttrs (prev.lib.const { + name = "eza-vendor.tar.gz"; + inherit src; + outputHash = "sha256-bF4Thh/KUOLQz4MmM0WqQmXXT8dsLjy9ngy1UN5ACk8="; + }); + }); + }) + ]; +}