diff options
author | Masum Reza <50095635+JohnRTitor@users.noreply.github.com> | 2024-06-21 00:24:07 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 00:24:07 +0530 |
commit | ecb03496938dcf695e74de42489e33bb538e999d (patch) | |
tree | 443ed807a9555905f1665380409be5647bc0388c /pkgs/by-name/zs | |
parent | c497e80fffd5595f2ab09fd6c49491b7e503e528 (diff) | |
parent | 3ac1afe403d99d0a1a417209528deb9c1f808aaa (diff) |
Merge pull request #296562 from fidgetingbits/add-zsh-zhooks-plugin
zsh-zhooks: init at 0-unstable-10-31-2021
Diffstat (limited to 'pkgs/by-name/zs')
-rw-r--r-- | pkgs/by-name/zs/zsh-zhooks/package.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/zs/zsh-zhooks/package.nix b/pkgs/by-name/zs/zsh-zhooks/package.nix new file mode 100644 index 0000000000000..1fea11eb4e6a5 --- /dev/null +++ b/pkgs/by-name/zs/zsh-zhooks/package.nix @@ -0,0 +1,33 @@ +{ + lib, + stdenv, + fetchFromGitHub, +}: +stdenv.mkDerivation { + pname = "zsh-zhooks"; + version = "0-unstable-10-31-2021"; + + src = fetchFromGitHub { + owner = "agkozak"; + repo = "zhooks"; + rev = "e6616b4a2786b45a56a2f591b79439836e678d22"; + sha256 = "sha256-zahXMPeJ8kb/UZd85RBcMbomB7HjfEKzQKjF2NnumhQ="; + }; + + dontBuild = true; + + installPhase = '' + install -m755 -D zhooks.plugin.zsh --target-directory $out/share/zsh/zhooks + ''; + + meta = { + description = "A tool for displaying the code for all Zsh hook functions"; + homepage = "https://github.com/agkozak/zhooks"; + license = lib.licenses.mit; + longDescription = '' + This Zsh plugin is a tool for displaying the code for all Zsh hook functions (such as precmd), as well as the contents of + hook arrays (such as precmd_functions). + ''; + maintainers = [ lib.maintainers.fidgetingbits ]; + }; +} |