summary refs log tree commit diff
path: root/pkgs/shells/zsh/zsh-system-clipboard/default.nix
blob: 6e875b6ee086ec5e05f95aaa48f9f56a7a144449 (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
26
{ stdenv, lib, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "zsh-system-clipboard";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "kutsan";
    repo = "zsh-system-clipboard";
    rev = "v${version}";
    sha256 = "09lqav1mz5zajklr3xa0iaivhpykv3azkjb7yj9wyp0hq3vymp8i";
  };

  strictDeps = true;
  installPhase = ''
    install -D zsh-system-clipboard.zsh $out/share/zsh/${pname}/zsh-system-clipboard.zsh
  '';

  meta = with lib; {
    homepage = "https://github.com/kutsan/zsh-system-clipboard";
    description = "A plugin that adds key bindings support for ZLE (Zsh Line Editor) clipboard operations for vi emulation keymaps";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ _0qq ];
    platforms = platforms.all;
  };
}