about summary refs log tree commit diff
path: root/pkgs/by-name/zs/zsh-zhooks/package.nix
blob: 1fea11eb4e6a5caf6306a9c1c6bdac1667e03af8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 ];
  };
}