Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / shells / zsh / zsh-autosuggestions / default.nix
blobb1df50a9c681332beea4207505e7c68cda682ba8
1 { lib, stdenv, fetchFromGitHub, zsh }:
3 # To make use of this derivation, use the `programs.zsh.autosuggestions.enable` option
5 stdenv.mkDerivation rec {
6   pname = "zsh-autosuggestions";
7   version = "0.7.0";
9   src = fetchFromGitHub {
10     owner = "zsh-users";
11     repo = "zsh-autosuggestions";
12     rev = "v${version}";
13     sha256 = "1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98";
14   };
16   strictDeps = true;
17   buildInputs = [ zsh ];
19   installPhase = ''
20     install -D zsh-autosuggestions.zsh \
21       $out/share/zsh-autosuggestions/zsh-autosuggestions.zsh
22     '';
24   meta = with lib; {
25     description = "Fish shell autosuggestions for Zsh";
26     homepage = "https://github.com/zsh-users/zsh-autosuggestions";
27     license = licenses.mit;
28     platforms = platforms.unix;
29     maintainers = [ maintainers.loskutov ];
30   };