2022-08-13 21:05:07 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2016-06-26 22:39:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "zsh-completions";
|
2022-07-03 19:17:43 +00:00
|
|
|
version = "0.34.0";
|
2016-06-26 22:39:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
2019-09-20 23:16:43 +00:00
|
|
|
repo = pname;
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2022-07-03 19:17:43 +00:00
|
|
|
sha256 = "sha256-qSobM4PRXjfsvoXY6ENqJGI9NEAaFFzlij6MPeTfT0o=";
|
2016-06-26 22:39:18 +00:00
|
|
|
};
|
|
|
|
|
2022-05-06 18:39:28 +00:00
|
|
|
strictDeps = true;
|
2022-08-13 21:05:07 +00:00
|
|
|
installPhase = ''
|
2016-06-26 22:39:18 +00:00
|
|
|
install -D --target-directory=$out/share/zsh/site-functions src/*
|
2022-08-13 21:06:04 +00:00
|
|
|
|
|
|
|
# tmuxp install it so avoid collision
|
|
|
|
rm $out/share/zsh/site-functions/_tmuxp
|
2016-06-26 22:39:18 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Additional completion definitions for zsh";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/zsh-users/zsh-completions";
|
2021-01-15 06:28:56 +00:00
|
|
|
license = lib.licenses.free;
|
2016-06-26 22:39:18 +00:00
|
|
|
|
2021-01-15 06:28:56 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.olejorgenb ];
|
2016-06-26 22:39:18 +00:00
|
|
|
};
|
|
|
|
}
|