summary refs log tree commit diff
path: root/pkgs/shells/zsh/zsh-clipboard/default.nix
diff options
context:
space:
mode:
authorbb2020 <bb2020@users.noreply.github.com>2021-04-06 00:26:20 +0300
committerGitHub <noreply@github.com>2021-04-05 23:26:20 +0200
commitea0e582d8a46b56eb5fd07838184223b54ffa704 (patch)
tree6a58dc753e988a04fd4a41211cb5d1135117bddd /pkgs/shells/zsh/zsh-clipboard/default.nix
parentc8919c6f14067564b2fed5a56eb4556745f94f54 (diff)
zsh-clipboard: init at 1.0 (#115450)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/shells/zsh/zsh-clipboard/default.nix')
-rw-r--r--pkgs/shells/zsh/zsh-clipboard/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-clipboard/default.nix b/pkgs/shells/zsh/zsh-clipboard/default.nix
new file mode 100644
index 0000000000000..114e0bfd7dc58
--- /dev/null
+++ b/pkgs/shells/zsh/zsh-clipboard/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, lib }:
+
+stdenv.mkDerivation rec {
+  pname = "zsh-clipboard";
+  version = "1.0";
+
+  src = ./.;
+
+  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;
+  };
+}