2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zsh }:
|
2017-01-11 06:00:48 +00:00
|
|
|
|
2021-03-03 10:08:11 +00:00
|
|
|
# To make use of this derivation, use the `programs.zsh.autosuggestions.enable` option
|
2017-01-11 06:00:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zsh-autosuggestions";
|
2021-06-11 14:33:11 +01:00
|
|
|
version = "0.7.0";
|
2017-01-11 06:00:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
2017-05-23 11:06:52 +01:00
|
|
|
repo = "zsh-autosuggestions";
|
2017-01-11 06:00:48 +00:00
|
|
|
rev = "v${version}";
|
2021-06-11 14:33:11 +01:00
|
|
|
sha256 = "1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98";
|
2017-01-11 06:00:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zsh ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D zsh-autosuggestions.zsh \
|
|
|
|
$out/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-11 06:00:48 +00:00
|
|
|
description = "Fish shell autosuggestions for Zsh";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/zsh-users/zsh-autosuggestions";
|
2017-01-11 06:00:48 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.loskutov ];
|
|
|
|
};
|
|
|
|
}
|