summary refs log tree commit diff
path: root/pkgs/shells/zsh
diff options
context:
space:
mode:
authorIcy-Thought <icy-thought@pm.me>2023-07-07 12:37:38 +0200
committerIcy-Thought <icy-thought@pm.me>2023-07-08 02:31:28 +0200
commit9fb0a911cc7b29d232db4272233cb22c64faebef (patch)
tree49a84aea5e1597c54ae6b5e2e4ef87e39ec9437e /pkgs/shells/zsh
parent68a3f565fbae452dea16cc600be1876164fad475 (diff)
zsh-abbr: init at 5.1.0
Diffstat (limited to 'pkgs/shells/zsh')
-rw-r--r--pkgs/shells/zsh/zsh-abbr/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/shells/zsh/zsh-abbr/default.nix b/pkgs/shells/zsh/zsh-abbr/default.nix
new file mode 100644
index 0000000000000..9a8f9f9b55971
--- /dev/null
+++ b/pkgs/shells/zsh/zsh-abbr/default.nix
@@ -0,0 +1,30 @@
+{
+  stdenv,
+  lib,
+  fetchFromGitHub,
+}:
+stdenv.mkDerivation rec {
+  pname = "zsh-abbr";
+  version = "5.1.0";
+
+  src = fetchFromGitHub {
+    owner = "olets";
+    repo = "zsh-abbr";
+    rev = "v${version}";
+    hash = "sha256-iKL2vn7TmQr78y0Bn02DgNf9DS5jZyh6uK9MzYTFZaA";
+  };
+
+  strictDeps = true;
+
+  installPhase = ''
+    install -D zsh-abbr.zsh $out/share/zsh/${pname}/abbr.plugin.zsh
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/olets/zsh-abbr";
+    description = "The zsh manager for auto-expanding abbreviations, inspired by fish shell";
+    license = with licenses; [cc-by-nc-nd-40 hl3];
+    maintainers = with maintainers; [icy-thought];
+    platforms = platforms.all;
+  };
+}