diff --git a/pkgs/shells/zsh/zsh-autocomplete/default.nix b/pkgs/shells/zsh/zsh-autocomplete/default.nix new file mode 100644 index 000000000000..a58a941189c9 --- /dev/null +++ b/pkgs/shells/zsh/zsh-autocomplete/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenvNoCC, fetchFromGitHub }: + +stdenvNoCC.mkDerivation rec { + pname = "zsh-autocomplete"; + version = "21.09.22"; + + src = fetchFromGitHub { + owner = "marlonrichert"; + repo = "zsh-autocomplete"; + rev = version; + sha256 = "sha256-c4+5ta0ATuy9hIygSnqaquHf+YIStvHMaABwq3qyru8="; + }; + + installPhase = '' + install -D zsh-autocomplete.plugin.zsh $out/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh + cp -R scripts $out/share/zsh-autocomplete/scripts + cp -R functions $out/share/zsh-autocomplete/functions + ''; + + meta = with lib; { + description = "Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion"; + homepage = "https://github.com/marlonrichert/zsh-autocomplete/"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ maintainers.em0lar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5cecb881279e..2257c6b9fd2d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10903,6 +10903,8 @@ with pkgs; zsh-fzf-tab = callPackage ../shells/zsh/zsh-fzf-tab { }; + zsh-autocomplete = callPackage ../shells/zsh/zsh-autocomplete { }; + zsh-autosuggestions = callPackage ../shells/zsh/zsh-autosuggestions { }; zsh-powerlevel10k = callPackage ../shells/zsh/zsh-powerlevel10k { };