base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / zs / zsh-abbr / package.nix
blobc9e0e9de85f88080b67f9505b62ff5c5724cf5be
2   stdenv,
3   lib,
4   fetchFromGitHub,
5   installShellFiles,
6 }:
7 stdenv.mkDerivation rec {
8   pname = "zsh-abbr";
9   version = "5.8.3";
11   src = fetchFromGitHub {
12     owner = "olets";
13     repo = "zsh-abbr";
14     rev = "v${version}";
15     hash = "sha256-Kl98S1S4Ds9TF3H1YOjwds38da++/5rpgO/oAfKwRrc=";
16   };
18   strictDeps = true;
19   nativeBuildInputs = [ installShellFiles ];
21   installPhase = ''
22     runHook preInstall
24     install zsh-abbr.plugin.zsh zsh-abbr.zsh -Dt $out/share/zsh/zsh-abbr/
25     install completions/_abbr -Dt $out/share/zsh/zsh-abbr/completions/
27     # Required for `man` to find the manpage of abbr, since it looks via PATH
28     installManPage man/man1/*
30     runHook postInstall
31   '';
33   meta = with lib; {
34     homepage = "https://github.com/olets/zsh-abbr";
35     description = "Zsh manager for auto-expanding abbreviations, inspired by fish shell";
36     license = with licenses; [cc-by-nc-nd-40 hl3];
37     maintainers = with maintainers; [icy-thought];
38     platforms = platforms.all;
39   };