depot/third_party/nixpkgs/pkgs/shells/zsh/zsh-abbr/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

33 lines
819 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation rec {
pname = "zsh-abbr";
version = "5.8.2";
src = fetchFromGitHub {
owner = "olets";
repo = "zsh-abbr";
rev = "v${version}";
hash = "sha256-K3LOTnTS8XD6RsPi0c3VqYbO3Ep99iaA4BXRcKK2dgE=";
};
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;
};
}