depot/third_party/nixpkgs/pkgs/shells/zsh/zsh-abbr/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
819 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "zsh-abbr";
version = "5.8.0";
src = fetchFromGitHub {
owner = "olets";
repo = "zsh-abbr";
rev = "v${version}";
hash = "sha256-bsacP1f1daSYfgMvXduWQ64JJXnrFiLYURENKSMA9LM=";
};
strictDeps = true;
installPhase = ''
install -D zsh-abbr.zsh $out/share/zsh/${pname}/abbr.plugin.zsh
# Needed so that `man` can find the manpage, since it looks via PATH
mkdir -p $out/bin
mv man $out/share/man
'';
meta = with lib; {
homepage = "https://github.com/olets/zsh-abbr";
description = "Zsh manager for auto-expanding abbreviations, inspired by fish shell";
license = with licenses; [cc-by-nc-nd-40 hl3];
maintainers = with maintainers; [icy-thought];
platforms = platforms.all;
};
}