summary refs log tree commit diff
path: root/pkgs/shells/zsh/zsh-autopair/default.nix
blob: 0cc1535e53ae2d323b49767e53e5b094d8b46a61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "zsh-autopair";
  version = "1.0";

  src = fetchFromGitHub {
    owner = "hlissner";
    repo = "zsh-autopair";
    rev = "v${version}";
    sha256 = "1h0vm2dgrmb8i2pvsgis3lshc5b0ad846836m62y8h3rdb3zmpy1";
  };

  installPhase = ''
    install -D autopair.zsh $out/share/zsh/${pname}/autopair.zsh
  '';

  meta = with lib; {
    homepage = "https://github.com/hlissner/zsh-autopair";
    description = "A plugin that auto-closes, deletes and skips over matching delimiters in zsh intelligently";
    license = licenses.mit;
    maintainers = with maintainers; [ _0qq ];
    platforms = platforms.all;
  };
}