2022-08-21 13:32:41 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zsh-completions";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.34.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-qSobM4PRXjfsvoXY6ENqJGI9NEAaFFzlij6MPeTfT0o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
installPhase = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
install -D --target-directory=$out/share/zsh/site-functions src/*
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
# tmuxp install it so avoid collision
|
|
|
|
rm $out/share/zsh/site-functions/_tmuxp
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Additional completion definitions for zsh";
|
|
|
|
homepage = "https://github.com/zsh-users/zsh-completions";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.free;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.olejorgenb ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|