nur-packages/pkgs/shells/zsh/zsh-z/default.nix

35 lines
795 B
Nix
Raw Permalink Normal View History

2020-10-15 19:05:13 +11:00
{ stdenv
, fetchFromGitHub
, installShellFiles
, zsh
}:
stdenv.mkDerivation {
pname = "zsh-z";
version = "20210117.g289a4a7";
2020-10-15 19:05:13 +11:00
src = fetchFromGitHub {
owner = "agkozak";
repo = "zsh-z";
rev = "289a4a7208db9b1778cba71c58fed46dbcea3bc7";
sha256 = "016prpavxdzjg372y2700rczdgzjb53bqz5mxjgmvrvjxwj69cf0";
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
2020-10-15 19:05:13 +11:00
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
};
}