Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-24.05] zsh-zhooks: init at 0-unstable-10-31-2021 #321321

Merged
merged 3 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6709,6 +6709,18 @@
githubId = 8182846;
name = "Francesco Gazzetta";
};
fidgetingbits = {
name = "fidgetingbits";
email = "[email protected]";
matrix = "@fidgetingbits:matrix.org";
github = "fidgetingbits";
githubId = 13679876;
keys = [
{ fingerprint = "U+vNNrQxJRj3NPu9EoD0LFZssRbk6LBg4YPN5nFvQvs"; }
{ fingerprint = "lX5ewVcaQLxuzqI92gujs3jFNki4d8qF+PATexMijoQ"; }
{ fingerprint = "elY15tXap1tddxbBVoUoAioe1u0RDWti5rc9cauSmwo"; }
];
};
figsoda = {
email = "[email protected]";
matrix = "@figsoda:matrix.org";
Expand Down
36 changes: 36 additions & 0 deletions pkgs/by-name/zs/zsh-zhooks/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
}:
stdenvNoCC.mkDerivation {
pname = "zsh-zhooks";
version = "0-unstable-2021-10-31";

src = fetchFromGitHub {
owner = "agkozak";
repo = "zhooks";
rev = "e6616b4a2786b45a56a2f591b79439836e678d22";
sha256 = "sha256-zahXMPeJ8kb/UZd85RBcMbomB7HjfEKzQKjF2NnumhQ=";
};

dontBuild = true;

installPhase = ''
runHook preInstall
install -m755 -D zhooks.plugin.zsh --target-directory $out/share/zsh/zhooks
runHook postInstall
'';

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 ];
platforms = lib.platforms.all;
};
}