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

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

  src = ./.;

  strictDeps = true;
  dontBuild = true;

  installPhase = ''
    install -D -m0444 -t $out/share/zsh/plugins/clipboard ./clipboard.plugin.zsh
  '';

  meta = with lib; {
    description = "Ohmyzsh plugin that integrates kill-ring with system clipboard";
    longDescription = ''
      Ohmyzsh plugin that integrates kill-ring with system clipboard.

      Key bindings for C-y, C-k, C-u, M-d, M-backspace and M-w are rebound.
      Behaviour of these keys should not be changed.
    '';
    license = licenses.mit;
    maintainers = with maintainers; [ bb2020 ];
    platforms = platforms.unix;
  };
}