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";
|
2023-08-31 10:43:36 +00:00
|
|
|
version = "0.35.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;
|
2023-08-31 10:43:36 +00:00
|
|
|
sha256 = "sha256-GFHlZjIHUWwyeVoCpszgn4AmLPSSE8UVNfRmisnhkpg=";
|
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";
|
2024-05-23 20:10:16 +00:00
|
|
|
license = with lib.licenses; [
|
|
|
|
asl20
|
|
|
|
bsd3
|
|
|
|
isc
|
|
|
|
mit
|
2024-08-11 12:57:32 +00:00
|
|
|
mit-modern
|
2024-05-23 20:10:16 +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
|
|
|
};
|
|
|
|
}
|