From 27390b8c4fecd8b07d522f020c1e9776e50404ba Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Sun, 24 Nov 2024 20:18:35 +0700 Subject: [PATCH] zsh: auto-complete now uses not crashing version --- home/programs/zsh.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/home/programs/zsh.nix b/home/programs/zsh.nix index 9608422..2b984e3 100644 --- a/home/programs/zsh.nix +++ b/home/programs/zsh.nix @@ -154,7 +154,22 @@ in } { name = "zsh-autocomplete"; - src = pkgs.zsh-autocomplete; + src = pkgs.zsh-autocomplete.overrideAttrs (old: rec { + version = "23.05.24"; + src = pkgs.fetchFromGitHub { + owner = "marlonrichert"; + repo = "zsh-autocomplete"; + rev = version; + sha256 = "sha256-/6V6IHwB5p0GT1u5SAiUa20LjFDSrMo731jFBq/bnpw="; + }; + installPhase = '' + ls -la + mkdir -p $out/share/zsh-autocomplete + install -D zsh-autocomplete.plugin.zsh $out/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh + cp -R functions $out/share/zsh-autocomplete/functions + cp -R scripts $out/share/zsh-autocomplete/scripts + ''; + }); file = "share/zsh-autocomplete/zsh-autocomplete.plugin.zsh"; } # {