nixpkgs/pkgs/by-name/zs/zsh-zhooks/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
982 B
Nix
Raw Normal View History

2024-03-17 06:32:18 +03:00
{
lib,
2024-07-06 00:58:32 +03:00
stdenvNoCC,
2024-03-17 06:32:18 +03:00
fetchFromGitHub,
}:
2024-07-06 00:58:32 +03:00
stdenvNoCC.mkDerivation {
2024-03-17 06:32:18 +03:00
pname = "zsh-zhooks";
2024-07-06 00:58:32 +03:00
version = "0-unstable-2021-10-31";
2024-03-17 06:32:18 +03:00
src = fetchFromGitHub {
owner = "agkozak";
repo = "zhooks";
rev = "e6616b4a2786b45a56a2f591b79439836e678d22";
sha256 = "sha256-zahXMPeJ8kb/UZd85RBcMbomB7HjfEKzQKjF2NnumhQ=";
};
dontBuild = true;
installPhase = ''
2024-07-06 00:58:32 +03:00
runHook preInstall
2024-03-17 06:32:18 +03:00
install -m755 -D zhooks.plugin.zsh --target-directory $out/share/zsh/zhooks
2024-07-06 00:58:32 +03:00
runHook postInstall
2024-03-17 06:32:18 +03:00
'';
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 ];
2024-07-06 00:58:32 +03:00
platforms = lib.platforms.all;
2024-03-17 06:32:18 +03:00
};
}