2020-10-15 19:05:13 +11:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
|
|
|
|
, zsh
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "zsh-z";
|
2021-01-24 16:37:51 +11:00
|
|
|
version = "20200919.g09209db";
|
2020-10-15 19:05:13 +11:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "agkozak";
|
|
|
|
repo = "zsh-z";
|
2020-12-09 09:32:47 +11:00
|
|
|
rev = "09209db2daf4b0e7f180cea04d1344fcc06a9410";
|
|
|
|
sha256 = "06z96v3w998hcws13lj6332154aqg1qg3ignv2x835frq677yfzm";
|
2020-10-15 19:05:13 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
propogatedBuildInputs = [ zsh ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D zsh-z.plugin.zsh \
|
|
|
|
$out/share/zsh-z/zsh-z.zsh
|
|
|
|
installShellCompletion --zsh _zshz
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''Jump quickly to directories that you have visited "frecently." A native ZSH port of z.sh.'';
|
|
|
|
homepage = "https://github.com/agkozak/zsh-z";
|
|
|
|
license = stdenv.lib.licenses.mit;
|
2021-01-04 12:10:34 +11:00
|
|
|
platforms = zsh.meta.platforms;
|
2020-10-15 19:05:13 +11:00
|
|
|
};
|
|
|
|
}
|