nixpkgs-immich/pkgs/by-name/zs/zsh-zhooks/package.nix
2024-09-17 10:23:40 -06:00

37 lines
982 B
Nix

{
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;
};
}