mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
zhook: init at 0-unstable-10-31-2021
(cherry picked from commit 3ac1afe403
)
This commit is contained in:
parent
e961383ee4
commit
88571b0618
33
pkgs/by-name/zs/zsh-zhooks/package.nix
Normal file
33
pkgs/by-name/zs/zsh-zhooks/package.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user