mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
fc3e91bf77
Semi-automatic update. These checks were performed: - built on NixOS - found 0.4.2 with grep in /nix/store/pgilg1imys99x1i42dslrv4qvqkp0p4d-zsh-autosuggestions-0.4.2 - found 0.4.2 in filename of file in /nix/store/pgilg1imys99x1i42dslrv4qvqkp0p4d-zsh-autosuggestions-0.4.2 cc "@loskutov"
31 lines
815 B
Nix
31 lines
815 B
Nix
{ stdenv, fetchFromGitHub, zsh }:
|
|
|
|
# To make use of this derivation, use the `programs.zsh.enableAutoSuggestions` option
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "zsh-autosuggestions-${version}";
|
|
version = "0.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zsh-users";
|
|
repo = "zsh-autosuggestions";
|
|
rev = "v${version}";
|
|
sha256 = "1yvbhfaaqzhmjmwjh75i1p4mrqp3ksw74bp8lrll81c6zf8bmvig";
|
|
};
|
|
|
|
buildInputs = [ zsh ];
|
|
|
|
installPhase = ''
|
|
install -D zsh-autosuggestions.zsh \
|
|
$out/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Fish shell autosuggestions for Zsh";
|
|
homepage = https://github.com/zsh-users/zsh-autosuggestions;
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.loskutov ];
|
|
};
|
|
}
|